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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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