Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Story: I have a 0s and 1s for each day. I would like to visually show the proportion of 0s to the total counts per day on a visual.
I created a matrix putting date on rows, the column in question in the "columns" and "values" box. Then I right clicked on the show value as Percent of row total which works perfectly. I need that matrix turned into a visual keeping only the 0s proportion.
Objective: How can I make a visual that will show case the 0s in % row total exactly as the matrix above. Do I have to create measures for this?
Solved! Go to Solution.
You would yes. Something list this will get you what you are looking for.
0 pct of total = VAR _zeros = CALCULATE( COUNTROWS( 'YourTable' ), 'YourTable'[Value] = 0 ) VAR _Total = COUNTROWS( 'YourTable' ) RETURN DIVIDE ( _zeros, _Total )
Then you put that measure in your chart values along with the date on the axis.
You would yes. Something list this will get you what you are looking for.
0 pct of total = VAR _zeros = CALCULATE( COUNTROWS( 'YourTable' ), 'YourTable'[Value] = 0 ) VAR _Total = COUNTROWS( 'YourTable' ) RETURN DIVIDE ( _zeros, _Total )
Then you put that measure in your chart values along with the date on the axis.
Such a quick and elegant solution, thank you
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |