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.
I use the following measure to compute % of things that occur each day of week for 5 years on a clustered column chart. Sometimes the % for a year may total 101% for example.
Can I add something to the measure to make sure each year the percentages equal 100%?
Hi,
Share some data to work with, explain the question and show the expected result. Please also ensure that you have a Calendar Table with a column of Week number.
hi @bdehning
Not sure about the logic, if limit to result to 100% is the only issue, you may try to change
RETURN
DIVIDE ( _count, _totalperyear )
to
VAR _pct =
DIVIDE ( _count, _totalperyear )
RETURN
IF(_pct<=1, _pct, 1)
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 |
---|---|
104 | |
96 | |
80 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |