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.
My datamodel:
The active join is between DimDato - my date table and the coloumn [Forventet afsluttet Dato]
My measure:
Count =
VAR MinDate = CALCULATE(MIN(DimDato[Dato]),ALLSELECTED(DimDato[Dato]))
RETURN
CALCULATE(
DISTINCTCOUNT(FactArvesager[ArvesagsKey]),
FactArvesager[Bostarts Dato] < MinDate &&
(FactArvesager[Realiseretarv Dato] = BLANK() || FactArvesager[Realiseretarv Dato] >= MinDate)
)
Here is the odd part. When I build my measure everything is fine. it counts correctly and the total is correct
But if I add a date from my Date dimension (DimDato) things start to look weird:
For some reason it adds the BoNummer (MemberIds) for 62026,62027 & 62028
But the total is correct, and according to my measure, they should not be counted. If I add the MinDate to see what it calculates it does though make sense:
But the purpose of adding the variable to my measure, this part:
VAR MinDate = CALCULATE(MIN(DimDato[Dato]),ALLSELECTED(DimDato[Dato]))
is to get the minmum date selected in the date slicer, but that seems not to be the case.
I simply can not figure it out. The key is the date variable that is suppose to be that same value for every row but apparently is not
Try changing the four bidirectional relationships to unidirectional. Bidirectional relationships can cause numerous isues.
Proud to be a Super User!
Sorry but it is a questionary, so that is actually a model I got in here and will not work without
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |