Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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...
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)
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?
before addressing the technical DAX issue, don't you have any values with blank (or null) Cost Centers?
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |