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 All,
I am using switch function to dynamically change chart axis in Power BI. I created a table like this e.g
Table =
var branch = CROSSJOIN(ROW("Type","Branch"), VALUES(DIM_BR[Bname]))
var age = CROSSJOIN(ROW("Type","age"), VALUES(DIM_MER[age]))
return UNION(branch,mid)
and switch function to create a measure.
Measure2 = if(HASONEVALUE('Table'[Type]),
SWITCH(VALUES('Table'[Type])
,"br",CALCULATE(count(DIM_mid[mid])
,TREATAS(VALUES('Table'[Values])
,DIM_BR[Bname]))
,"age",CALCULATE(count(DIM_mid[mid])
,TREATAS(VALUES('Table'[Values])
,DIM_MER[age]))))
It works find. I use measure to create chart and can filter dynamically by age or br.
But this way i am unable to use feature "show records" with details in the tables i used like dim_mid since it shows me only summary values in "showdata" only in the measure. I want to see detail data in dim_mid table by right clicking on the chart and using "Show Records" whenever I select a br or age. Is there any help? thanks
Solved! Go to Solution.
@topkapi,
See Records can't be used when your visual uses a calculated measure. This behavior is by design. You can vote the following ideas about this issue.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/14260122-i-love-the-see-records-f...
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31791007-see-records-should-work-...
Regards,
Lydia
@topkapi,
See Records can't be used when your visual uses a calculated measure. This behavior is by design. You can vote the following ideas about this issue.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/14260122-i-love-the-see-records-f...
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31791007-see-records-should-work-...
Regards,
Lydia
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 | |
97 | |
78 | |
68 | |
55 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |