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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Shoukry
Frequent Visitor

how to display Measures in Matrix Subtotal

HI

I 'm using the Matrix Viulixationto to display some figures divided into Data Fields and Measure fields

 

the problem is some of this figures is Measures, so if I have one line in the Group Area, the Subtotal will display all columns without any problem, but

if I got more than one line in the Group Area, the Subtotal will display the data fields only but all Measures will not appear in the subtotal

 

does anybody know the reason for this problem?

 

PBI_Ss.jpg

1 ACCEPTED SOLUTION

Hi @Shoukry,

 

This could be the trick of math. The SELECTEDVALUE(Revenue_Report_V[TREVPAR_excl_OOO_MTD]) will return a BLANK value if the context is total or subtotal. Then blank divide anything will be blank. Please refer to Selectedvalue.

What's your expected value? How about SUM?

 

Best Regards,

Dale

Community Support Team _ Dale
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

6 REPLIES 6
Shoukry
Frequent Visitor

Hello everybody

sorry for beging late,

 

I have reviewed the solution that provided by @Greg_Deckler. but I think it's talking about another problem

because my problem is I'm retrieving the measure value for each row without any problem but I can't make it visual in Subtotal of the Matrix control please check the below snapshot

 

 

also please check my Mesure syntax : 

TREVPAR_excl_OOO_MTD_M = DIVIDE(SELECTEDVALUE(Revenue_Report_V[TREVPAR_excl_OOO_MTD]), [TY_EXrate_M],0)

 

 

BI.jpg

 

Hi @Shoukry,

 

This could be the trick of math. The SELECTEDVALUE(Revenue_Report_V[TREVPAR_excl_OOO_MTD]) will return a BLANK value if the context is total or subtotal. Then blank divide anything will be blank. Please refer to Selectedvalue.

What's your expected value? How about SUM?

 

Best Regards,

Dale

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

Done, using "Sum" has solved the problem.

 

v-jiascu-msft
Employee
Employee

Hi @Shoukry,

 

Could you please mark the proper answer as solution?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @Shoukry,

 

Please try the solution by @Greg_Deckler. If you need more help, please provide the formulas of the measures. If you can provide the file, that would be great. A dummy file is enough.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

See if this helps:

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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