Forum Discussion
Measure for Line diagramm
Hi!
I am kind of new to PowerBI and I wanted to do a ratio. So I figured I can divide somehow like this:
Hi Anonymous ,
You can create a Running Total measures for them: For ex:Test=
Var A= CALCULATE(CALCULATE(COUNT('Table1'[A]), FILTER('Table1','Table1'[A] = "Closed")), FILTER(ALLSELECTED(Table1[Date]), Date <= MAX( Table[Date])))
Var B= CALCULATE(COUNT('Table1'[B]), FILTER(ALLSELECTED(Table1[Date]), Date <= MAX( Table[Date])))
Return (1- DIVIDE(A,B))I hope this helps!
2 Replies
- Tanushree_Kapse
Impactful Individual
Hi Anonymous ,
You can create a Running Total measures for them: For ex:Test=
Var A= CALCULATE(CALCULATE(COUNT('Table1'[A]), FILTER('Table1','Table1'[A] = "Closed")), FILTER(ALLSELECTED(Table1[Date]), Date <= MAX( Table[Date])))
Var B= CALCULATE(COUNT('Table1'[B]), FILTER(ALLSELECTED(Table1[Date]), Date <= MAX( Table[Date])))
Return (1- DIVIDE(A,B))I hope this helps!
- AnonymousNot applicable
That worked as solution. Thank you! 🙂