Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
I'm new on PowerBI and I'm trying to undestand better how to use DAX.
I have the following table named say "Opportunity"
Id Stage
1 0
2 1
3 0
4 2
5 0
6 1
7 1
8 0
9 1
10 2
11 2
What I would like to obtain is a new table where for each distint value of Stage I have the count of row that are lower or equal to that value. In other words, I would like to obtain a table named "pipeline" with two colums like:
Col1=Distinct(Opportunity[Stage])
Col2=COUNTROWS ( filter(Opportunity; Opportunity[Stage] >= Col1 )
obtaing as a final result
Col1 Col2
0 11
1 7
2 3
Solved! Go to Solution.
All you really need is this MEASURE
Measure = CALCULATE ( COUNTA ( Opportunity[Stage] ), FILTER ( ALLSELECTED ( Opportunity ), Opportunity[Stage] >= MIN ( Opportunity[Stage] ) ) )
Then create a Table Visualization like in the picture...
Hope this helps.
Good Luck!
All you really need is this MEASURE
Measure = CALCULATE ( COUNTA ( Opportunity[Stage] ), FILTER ( ALLSELECTED ( Opportunity ), Opportunity[Stage] >= MIN ( Opportunity[Stage] ) ) )
Then create a Table Visualization like in the picture...
Hope this helps.
Good Luck!
Thanks @Sean, after adapting it to my real data, the proposed solution seems to be working!
User | Count |
---|---|
87 | |
74 | |
69 | |
58 | |
55 |
User | Count |
---|---|
40 | |
38 | |
34 | |
32 | |
30 |