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
Hello,
I need to get the total percentage, but it appears that the values on total is inaccurate.
Here are some measurements that I created:
actual = COUNT('2015_POSdata'[COUNT])
no of stations = CALCULATE(DISTINCTCOUNT('2015_POSdata'[POS-Active Stations]),ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName]))
monthend day = CALCULATE(DISTINCTCOUNT('2015_POSdata'[DATE]), ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName]))
expected = '2015_POSdata'[no of stations] * [monthend day]
%age = DIVIDE([actual],[expected])
Kinfly help me please. Thank you.
Solved! Go to Solution.
Hi @sclencioco,
Yes, I think you are in the right direction, you can refer to below formula to create a new table to get the summary records.
Formula:
Summary Table=
ADDCOLUMNS(
SUMMARIZE('2015_POSdata','2015_POSdata'[MonthName],
"actual",COUNT('2015_POSdata'[COUNT]),
"no of stations",CALCULATE(DISTINCTCOUNT('2015_POSdata'[POS-Active Stations]),ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName])),
"monthend day",CALCULATE(DISTINCTCOUNT('2015_POSdata'[DATE]), ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName]))),
"expected",[no of stations] * [monthend day],"%age",DIVIDE([actual],[expected])
)
Regards,
Xiaoxin Sheng
Hi @sclencioco,
Yes, I think you are in the right direction, you can refer to below formula to create a new table to get the summary records.
Formula:
Summary Table=
ADDCOLUMNS(
SUMMARIZE('2015_POSdata','2015_POSdata'[MonthName],
"actual",COUNT('2015_POSdata'[COUNT]),
"no of stations",CALCULATE(DISTINCTCOUNT('2015_POSdata'[POS-Active Stations]),ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName])),
"monthend day",CALCULATE(DISTINCTCOUNT('2015_POSdata'[DATE]), ALLEXCEPT('2015_POSdata','2015_POSdata'[MonthName]))),
"expected",[no of stations] * [monthend day],"%age",DIVIDE([actual],[expected])
)
Regards,
Xiaoxin Sheng
I am considering creating a separate table just to reflect the total.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |