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.
Good afternoon,
I have this measure:
_Effectief Aantal Dagen met FiliaalAfsluit:=
Var berekening = CALCULATE(COUNTROWS(SUMMARIZECOLUMNS(FiliaalAfsluit[SK_Datum], FiliaalAfsluit[SK_Partij])), FILTER(Partij, Partij[Keten] in {"CR", "DH"}))
return
berekening
This measure works fine in Power BI desktop. But when I add it to the tabular model I get this error:
Summarizecolumns and AddMissingItems cannot be used in this context
Any ideas on how I need to change this measure?
Thank you.
Solved! Go to Solution.
You can't use SUMMARIZECOLUMNS in a measure, try using SUMMARIZE instead
_Effectief Aantal Dagen met FiliaalAfsluit :=
VAR berekening =
CALCULATE (
COUNTROWS (
SUMMARIZE (
FiliaalAfsluit,
FiliaalAfsluit[SK_Datum],
FiliaalAfsluit[SK_Partij]
)
),
FILTER ( Partij, Partij[Keten] IN { "CR", "DH" } )
)
RETURN
berekening
You can't use SUMMARIZECOLUMNS in a measure, try using SUMMARIZE instead
_Effectief Aantal Dagen met FiliaalAfsluit :=
VAR berekening =
CALCULATE (
COUNTROWS (
SUMMARIZE (
FiliaalAfsluit,
FiliaalAfsluit[SK_Datum],
FiliaalAfsluit[SK_Partij]
)
),
FILTER ( Partij, Partij[Keten] IN { "CR", "DH" } )
)
RETURN
berekening
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 |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |