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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.