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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
BasilRudham
Frequent Visitor

Matrix Visual Columns Total formatting

Hi All, I need some help on what I think is a simple solution. I have a Matrix visual with the column Total. First I would like to exclude the totals of the last row which shows %'s from the Totals column. Secondly, how do I keep the Total as YTD when I filter the columns down to the last 3 calendar months only?

This the first time I'm using this forum so please excuse any errors/ignorance of protocols, etc. Any assistance would be appreciated. Matrix formatting.png

4 REPLIES 4
v-jianboli-msft
Community Support
Community Support

Hi BasilRudham,

 

Approve with @amitchandak .

Please try:

Create a measure:

Measure =

var _a = IF(MAX('Table'[Cyclecount])<>"Percentage Difference between Months",SUMX(FILTER( ALL('Table'),[Cyclecount]=MAX('Table'[Cyclecount])),[Value]),BLANK())

return IF(ISINSCOPE('Date'[Date]),MAX('Table'[Value]),_a)

Then apply the measure to the value field:

vjianbolimsft_0-1659093631211.png

 

And use a slicer instead of filter

Final output:

vjianbolimsft_1-1659093631215.png

 

vjianbolimsft_2-1659093631216.png

Besides, it seems that there are hierarchies in your Matrix, what is that?

If the result is not what you want, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

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

BasilRudham
Frequent Visitor

Good Day amitchandak, Thanks for the reply. I'm a relative newbie so I'm afraid I have no knowledge of how this works. The matrix table is populated with the fields 'Cyclecount' and 'Values' from the data table 'tbl_cycle_02' and the columns are populated from the 'Dates' table using the field 'MonthYear'. Is this the 'Table[Month] you are referring to? What is the [Percent Measure] you are referring to? Do i need to create a measure to somehow refer to the row containing the percentages and use this in your measure? Thank you for the assistance so far.

amitchandak
Super User
Super User

@BasilRudham , You need a measure like

 

if(isinscope(Table[Month]), [Percent Measure], blank())

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@BasilRudham , You need a measure like

 

if(isinscope(Table[Month]), [Percent Measure], blank())

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.