Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 53 | |
| 42 | |
| 34 | |
| 33 | |
| 21 |
| User | Count |
|---|---|
| 143 | |
| 125 | |
| 100 | |
| 80 | |
| 59 |