Forum Discussion
Extract name calculation item from calculation group
- Anonymous5 years ago
Hi Anonymous,
As the document said, these functions are based on the calculation groups. How did you calculate group settings? Did you confirm you have correctly configured these fields and properties?
If not, you can take a look at the following blog that mentioned about create calculate groups in power bi dekstop:
Creating Calculation Groups in Power BI Desktop
Regards,
Xiaoxin Sheng
I have the same problem. SelectedValue, SelectedMeasure, SelectedMeasureName all result in two returns -- the actual result of the measure (numeric or percentage) or it returns the name of the measure "Selected KPI" that contains the SelectMeasure() as part of the calc group. But I can never get to the actual name of the caclulate item or even the name of the measure associated with the calculated item.
I defined a measure, calcitemselected, with selectedvalue( calcgroup[calcitem] ) returning the underlying selectedmeasure instead of the selected calc group item. Eventually realised my calcitemselected measure was set to decimal not text, once I changed to text it worked perfectly. Have also found selectedvalue( calcgroup[calcitem] ) = "x" to work fine in switch statements.