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

Best way to avoid blank groups in tables and matrices.

I have written the below code for many different measures:

 

Measure :=
CALCULATE (
    SUM ( Revenue[xyz] ),
    FILTER ( 'Cost center', NOT 'Cost Center'[Department] IN { BLANK () } )
)

 

 

Initially I did it just for one; but ended up doing it for most of Revenue columns...

 

I did this in order to avoid the annoying first group that is blank...

 

ovonel_0-1627041670975.png

 

Is this a correct way of fixing the blanks? or is there a more performant way?

 

(I work with SSAS cubes, and I would rather avoid having this fix in the .pbix)

2 REPLIES 2
Anonymous
Not applicable

Why not filter in the Table or Matrix using Filter Pane? ex: Department is not blank. But then you will have to do this for every Table or Matrix.

 

Question is why do you have Blank Department or any other Blank columns (in same hierarchy) in the Cost center dimension. Do you have correct relationships with Fact?

 

 

 

Mohammad_Refaei
Solution Specialist
Solution Specialist

before addressing the technical DAX issue, don't you have any values with blank (or null) Cost Centers?

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.