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 a problem with a measure.
I need to change "cat_1" over another slicer.
Measure_1 = CALCULATE([Total], table[Category] == "cat_1")
This works... but is not flexible for my needs.
I know i could filter the whole visual over "cat_X"... and just use the [Total] measure, but it is not possible, because my axis shouldnt be filtered by that.
I tried to do this:
Measure_1 = CALCULATE([Total], table[Category] == SELECTEDVALUE(table[Category]))
Not possible... i dont know why... because SELECTEDVALUE(table[Category]) should return the string "cat_X"... and it does... inside of a card visual.
Even:
filter = "cat_1"
Measure_1 = CALCULATE([Total], table[Category] == filter)
is not working. I dont know why.
Do you know a solution?
Solved! Go to Solution.
Its weird...
Measure_1 =
VAR sel_value = SELECTEDVALUE(table[Category])
VAR result = CALCULATE([Total], table[Category] == sel_value )
RETURN
result
but this is working.
Its weird...
Measure_1 =
VAR sel_value = SELECTEDVALUE(table[Category])
VAR result = CALCULATE([Total], table[Category] == sel_value )
RETURN
result
but this is working.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |