The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?