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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Column Exclusion In Metrix

Dear Experts,
We have the below matrix , however the customer wants to keep the Target column only for the prior week ( please refer to the picture below).

AbhisekPowerBI_0-1655886881973.png

 

I have tried the option of dragging few columns , but getting the below marked boundaries against the hidden columns,

 

AbhisekPowerBI_1-1655888193665.png

 

 

How can we achieve this?
Thanks in Advance.

Thanks & Regards,

Abhisek

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

As I do not have your specific data, I have created a similar template for your reference at:

Base data:

vluwangmsft_0-1656300095561.png

visual:(Remove the circled parts of the image.)

vluwangmsft_1-1656300144549.png

 

Create the below measure:

TEST = IF(MAX('Table'[type2])="T2c",IF(MAX('Table'[type1])="T1",0,BLANK()),MAX('Table'[value]))

Use the measure to create visual:

vluwangmsft_2-1656300234785.png

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


Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

As I do not have your specific data, I have created a similar template for your reference at:

Base data:

vluwangmsft_0-1656300095561.png

visual:(Remove the circled parts of the image.)

vluwangmsft_1-1656300144549.png

 

Create the below measure:

TEST = IF(MAX('Table'[type2])="T2c",IF(MAX('Table'[type1])="T1",0,BLANK()),MAX('Table'[value]))

Use the measure to create visual:

vluwangmsft_2-1656300234785.png

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


Best Regards

Lucien

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.