Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
sclencioco
Helper I
Helper I

totals per column

Hello,

 

I need to get the total percentage, but it appears that the values on total is inaccurate.

 

Capture112316.JPG

 

 

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.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

sclencioco
Helper I
Helper I

I am considering creating a separate table just to reflect the total.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors