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.
Hi,
I'm having difficulties summing up the following table:
MyTable =
Solved! Go to Solution.
@CarlsBerg999 So this doesn't work?
MyTable =
VAR __Table =
FILTER(
CALCULATETABLE(
VALUES('Table'[Value (€)]),
USERELATIONSHIP(DateTable[Date],'Table'[Start Date])),
ISEMPTY(CALCULATETABLE('Table',
'Table'[Attribute mod.]="Quote requested",
USERELATIONSHIP(DateTable[Date],'Table'[Start Date]))))
VAR __Result = SUMX(__Table,[Value (€)])
RETURN
__Result
@CarlsBerg999 So this doesn't work?
MyTable =
VAR __Table =
FILTER(
CALCULATETABLE(
VALUES('Table'[Value (€)]),
USERELATIONSHIP(DateTable[Date],'Table'[Start Date])),
ISEMPTY(CALCULATETABLE('Table',
'Table'[Attribute mod.]="Quote requested",
USERELATIONSHIP(DateTable[Date],'Table'[Start Date]))))
VAR __Result = SUMX(__Table,[Value (€)])
RETURN
__Result
Unfortunately this only works in a visual where there are ID's for each row. The summarizing of these does not add up correctly. I'm not quite sure if report level filters are causing this.
Edit:
--> Answer to this was yes. Report level filters were the root cause. VALUES() -part of the formula was returning an incorrect value for the filter context. Thanks for the help!
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 |
---|---|
112 | |
103 | |
75 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |