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

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

Reply
jovendeluna21
Helper IV
Helper IV

Show only Relevant Values in a Dynamic Matrix(Hierarchies) when measure is formatted

Hello,

I have this dynamic matrix with dynamic rows. But the problem is when I try to format the measure into currency or percentage, it starts to show not relevant fields.

Attached herewith the pbi file: https://drive.google.com/file/d/1q7_YFhi5GCXBxT-aON6hTKqOGcHAxE8V/view?usp=sharing

 

Below is the example of without using any format to measure and it shows only relevant fields without blanks.

 

ss1.PNG

 

Below is the example of when I tried to format the measure, showing also not relevant fields or values.

 

ss.PNG

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @jovendeluna21 ,

 

The issue is that when you add the formatting the value returns a text so it's not blank anymore but has a value of empty. 

 

Change you measure to check if the measure is different from blank:

Measure = 
SWITCH(
    TRUE(),
    [USER SELECTION]="AVE PAYMENT TERM-EX247A DAYS (last N months)",[AVE PAYMENT TERM-EX247A DAYS (last N months)],
    [USER SELECTION]="AVE PAYMENT TERM-DAYS (last N months)",[AVE PAYMENT TERM-DAYS (last N months)],
    [USER SELECTION]="Spend (last N-months)"&& [Spend (last N-months)] <> BLANK() ,FORMAT([Spend (last N-months)], "cURRENCY"),
    BLANK())

 

MFelix_0-1648817332822.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @jovendeluna21 ,

 

The issue is that when you add the formatting the value returns a text so it's not blank anymore but has a value of empty. 

 

Change you measure to check if the measure is different from blank:

Measure = 
SWITCH(
    TRUE(),
    [USER SELECTION]="AVE PAYMENT TERM-EX247A DAYS (last N months)",[AVE PAYMENT TERM-EX247A DAYS (last N months)],
    [USER SELECTION]="AVE PAYMENT TERM-DAYS (last N months)",[AVE PAYMENT TERM-DAYS (last N months)],
    [USER SELECTION]="Spend (last N-months)"&& [Spend (last N-months)] <> BLANK() ,FORMAT([Spend (last N-months)], "cURRENCY"),
    BLANK())

 

MFelix_0-1648817332822.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you @MFelix !!! This is very helpful!

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors