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.
I have measure
SUm = SUMX(Table, [VALUE])
But have to write formula to ignore total in grandtotal if COuntry = ALL ?
Expected result
Hi @Analitika ,
Please do like this.
sum =
VAR x = SUMX( Sheet5, [Value])
VAR y =
CALCULATE(
SUM(Sheet5[Value]),
FILTER(
Sheet5,
Sheet5[Country] = "ALL"
)
)
RETURN
IF(
HASONEFILTER(Sheet5[Country]),
x,
y
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 | |
103 | |
98 | |
85 | |
64 |