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.
Element-ID | Element-Name |
1 | First element |
2 | Second Element |
Property Key | Property Value | Element-ID |
Color | Red | 1 |
Color | Blue | 2 |
Size | Small | 1 |
Solved! Go to Solution.
Hi @me1982 ,
As you said, measure cannot be applied to pie charts. try the following calculated column.
result_ =
VAR elementID = Elements[ElementID]
VAR shirtSize =
CALCULATE (
MAX ( 'Properties'[Value] ),
'Properties'[Key] = "Shirt Size"
&& 'Properties'[ElementID] = elementID
)
RETURN
IF ( ISBLANK ( shirtSize ), "Missing", shirtSize )
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @me1982 ,
As you said, measure cannot be applied to pie charts. try the following calculated column.
result_ =
VAR elementID = Elements[ElementID]
VAR shirtSize =
CALCULATE (
MAX ( 'Properties'[Value] ),
'Properties'[Key] = "Shirt Size"
&& 'Properties'[ElementID] = elementID
)
RETURN
IF ( ISBLANK ( shirtSize ), "Missing", shirtSize )
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you.
This seems to give the correct result. However it does require to add a column for each propery key.
Isn't there a simpler way?
Hi @me1982 ,
For now, probably creating a calculated column is the best way to go.
Best Regards,
Adamk Kong
I would like to help but I'm a little unclear about your requirements.
Can you show the following?
1) Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
2) Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
3) Please explain how you would expect to get from step 1 to 2.
4) If possible, please show your past attempts at a solution.
I hope this helps.
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 |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |