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.
Hello,
I have a matrix with this values:
Where I calculate the percent over total of a column for each year with the option "Show value as - Percent of column total" (the field on the Values box is Count of StoreKey). This is correct but I want to show this percent for a bar chart. If a change the visualization to a bar chart, the result is this:
But this is not correct, because I want this percent of column total in the values of the chart, not the percent of the gran total, like this:
How can I make this chart? What should be the calculation measures?
Thank you?
Solved! Go to Solution.
Hi, Try with this measure:
Measure = DIVIDE ( COUNT ( Table1[Storekey] ), CALCULATE ( COUNT ( Table1[Storekey] ), ALLEXCEPT ( Table1, Table1[Year] ) ) )
Let me know if works.
Victor
Lima-Peru
hi, please change the Data type--Format of the measure to Percentage and with 2 decimals.
Let me know whta result you obtain.
I answer myself. Only I have to add on the measure formula the new filter, like this:
Measure = DIVIDE ( COUNT ( Table1[Storekey] ), CALCULATE ( COUNT ( Table1[Storekey] ), ALLEXCEPT ( Table1, Table1[Year] ) , ALLEXCEPT(Table1, Table2[Country])) )
And that's it!
I was able to use the formula referenced above, however the results totaled 100% together - where I'm looking to have each year equal 100%. How can I modify?
Hi, Try with this measure:
Measure = DIVIDE ( COUNT ( Table1[Storekey] ), CALCULATE ( COUNT ( Table1[Storekey] ), ALLEXCEPT ( Table1, Table1[Year] ) ) )
Let me know if works.
Victor
Lima-Peru
Victor, I was having a similar issue as the Original Poster. Your solution worked great for me. Thanks for the help!
Hi @Vvelarde,
The result is this:
For your information, this is the model relationship:
Where FiscalYear is from Fecha table, ChannelDescription is from Canal table and the StoreKey is from Venta table.
Any idea?
hi, please change the Data type--Format of the measure to Percentage and with 2 decimals.
Let me know whta result you obtain.
I'm sorry but, one more question: if I put a filter on the report level (Country = China), the matrix change correctly but not the bar chart. What is wrong?
Thank you.
I answer myself. Only I have to add on the measure formula the new filter, like this:
Measure = DIVIDE ( COUNT ( Table1[Storekey] ), CALCULATE ( COUNT ( Table1[Storekey] ), ALLEXCEPT ( Table1, Table1[Year] ) , ALLEXCEPT(Table1, Table2[Country])) )
And that's it!
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |