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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
DEEW
Frequent Visitor

column sub total incorrect in power bi metrix table, please assist

Operating responsibilityWeek commence 31/7/2023Week commence 07/08/2023Week commence 14/08/2023Week commence 21/08/2023Week commence 28/08/2023Total ( is showing incorrect figures)
HME& Tech2721159630 ?
PMO West463728191448?
PMO East30231510833 ?
1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @DEEW ,

Is this value a MEASURE formula? If so, please have a try.

Create a measure based on the value meaure.

_result_ = var _a = 'table'[value_]
var _b = SUMMARIZE('table','table'[operating responsibility],"aaa",'table'[value])
return
IF(HASONEVALUE('table'[operating responsibility]),_a,SUMX(_b,[aaa]))

You can change the 'table'[operating responsibility] column to a unique value, like index, date and so on.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @DEEW ,

Is this value a MEASURE formula? If so, please have a try.

Create a measure based on the value meaure.

_result_ = var _a = 'table'[value_]
var _b = SUMMARIZE('table','table'[operating responsibility],"aaa",'table'[value])
return
IF(HASONEVALUE('table'[operating responsibility]),_a,SUMX(_b,[aaa]))

You can change the 'table'[operating responsibility] column to a unique value, like index, date and so on.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Thanks for reply. 

yes the value is a measure 

M_Employee DCount = CALCULATE(DISTINCTCOUNT('Table_hrs_by_calendar_day'[R3445_EmployeeId]), NOT(ISBLANK('Table_hrs_by_calendar_day'[Actual Dates])))

Can you please explane the DAX a bit more.. what did you mean by"aaa". 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.