Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
the model has only 2 table FactTable and dimintions
the measure bellow works as expected, the calculation ignores the dimintion, (in a slicer)
Solved! Go to Solution.
try something like
calc = CALCULATE(DISTINCTCOUNT(FactTable[TransactionCode])
,All(Dimintion)
,FactTable[CancelXID] <> BLANK()
)
or even
calc = CALCULATE(DISTINCTCOUNT(FactTable[TransactionCode])
,All(Dimintion)
,FactTable[CancelXID]
)
try something like
calc = CALCULATE(DISTINCTCOUNT(FactTable[TransactionCode])
,All(Dimintion)
,FactTable[CancelXID] <> BLANK()
)
or even
calc = CALCULATE(DISTINCTCOUNT(FactTable[TransactionCode])
,All(Dimintion)
,FactTable[CancelXID]
)
The fist option seems to work :), so why Filter does not work?
The FILTER expression is evaluated in the "default" context so it includes any filter on "Dimintion" (sic). If you really want to use FILTER (don't know why people are using filter all the time...) you could use something like:
calc = CALCULATE(DISTINCTCOUNT(FactTable[TransactionCode])
,All(Dimintion)
,FILTER(CALCULATETABLE(FactTable,All(Dimintion)),FactTable[CancelXID] <> BLANK())
)
I don't "realy want to use Filter" I am trying to understand why it did not work, and what I am not understanding well when using it
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 9 | |
| 7 | |
| 6 |