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
MaJar
Frequent Visitor

hide elements in a Pivot Table

Hi Everyone,

I'm trying to write a dax code that will allow me to hide rows in a pivot table if at least one of the elements is blank: 

Here is an exemple of my request: 

 

MaJar_0-1679000000412.png

Could you please support me on this ? 

 

Thank you in advance for the help 🙂 

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the raw data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@MaJar ,

Var _qtr = countrows(summarize(All(Date), Date[Qtr]))

var _qtr = calculate( countrows(summarize(fact,Date[Qtr], "_1", Sum(fact[Qunatity]) ), filter(allselected(Fact), Fact[Product] = max(Fact[Product]) )

return

calculate(Sum(fact[Qunatity]), filter(fact, _cnt = _qtr) )

 

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
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
Top Kudoed Authors