Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I have these two DAX measures that seem to work as intended.
So this one counts all of the records that are deleted:
Mapping_Count = CALCULATE(
COUNT(FACT_Mapping[MappingId]), FILTER(FACT_Mapping,'FACT_Mapping'[isdeleted]=FALSE))
And this one counts all of the records removing the calendar filter.
Mapping_Total = CALCULATE(
COUNT(FACT_Mapping[MappingId]), ALL(CalendarTable)
)
Now I need a further measure that comibines the two (but with the isdeleted the other way around). Remove the filter on the calendar table but only count the deleted. This is what I have....
Mapping_Total_DELETED = CALCULATE(
COUNT(FACT_Mapping[MappingId]),ALL(CalendarTable), FILTER(FACT_Mapping,'FACT_Mapping'[isdeleted]=TRUE))
But effectively the ALL(Calendar) table bit isnt working as intended as its still filtered based on the calendar table.
Any ideas?
TIA
Dan
Solved! Go to Solution.
try this
Mapping_Total_DELETED = CALCULATE(
COUNT(FACT_Mapping[MappingId]),
ALL(CalendarTable),
'FACT_Mapping'[isdeleted] = TRUE
)
try this
Mapping_Total_DELETED = CALCULATE(
COUNT(FACT_Mapping[MappingId]),
ALL(CalendarTable),
'FACT_Mapping'[isdeleted] = TRUE
)
Thank you. I was obviously over complicating it!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |