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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Hide Column only if it is selected and total in total column

Hello Guys!
I am recently doing a project in which i have a requirement from client says that we have 3 companys and in the report the companies column on demand like if we select company 1 then total of company 1 only if we select two 2 companies then only show two companies column and total = Company1 + Company 2

Company 1Company 2Company 3Total Company
1002009001200
2004005661166
30080012332333

I have done other things but how to hide column if it is not selected ?
please share your advise and solution Thanks in advance
@amitchandak 
@Greg_Deckler 


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

You can add if statement to package your measure expression to add conditions check if slicer selected specific values or they will replace to blank results.

ISFILTERED function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Anonymous What does your source data look like? If you have Company1, Company2 and Company3 columns then try unpivoting those in Power Query Editor.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler 
I want to show Company measure when i select company name from slicer else it should be hide.

Company 1 Measure
Company  2 Measure
Company 3 Measure
Total CompanyMeasure 1 Measure 2Measure 3Measure 4
1002009001200    
2004005661166    
30080012332333    
Anonymous
Not applicable

Hi @Anonymous,

You can add if statement to package your measure expression to add conditions check if slicer selected specific values or they will replace to blank results.

ISFILTERED function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Actually i have 3 companies and other measures
3 companies should Be there when i select from them single or multiple.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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