Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello there,
i have a month slicer witch uses the value MonthID and looks like this:
I also have a measure:
myMeasure= CALCULATE(
IF (
(COUNT ( table.column1 )) = BLANK (), 0 ,
(COUNT ( table.column1] )))
)
I want to change the code of the measure to only count rows inside the chosen date range.
Could you please help me? Thank you
Without seeing your tables/fields this is my best guess:
= CALCULATE(
COUNT(table.column1
),
ALLEXCEPT('MonthIDtable','table'[MonthID]
),
ISBLANK(table.column1
)<>TRUE()
)
Thank you very much for your answer cthurston, but i need a date range and not to exclude only one month with the ALLEXCEPT function. That didnt work for me unfortunatelly.
Can you provide a relationship and data sample?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |