Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
topkapi
Frequent Visitor

Able to Show Records/Drillthrough when using dynamic dimensions (slicer)

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

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.