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
Nimmi
Frequent Visitor

two slicer combinations for different charts

How to write measure for a clusterd bar chart with combination of selection radio buttons from two sliers.  

1 ACCEPTED SOLUTION

Hi @Nimmi,

 

I have made a sample to reproduce your scenario.

 

If I understand your requirement correctly that you want to get the output below.

 

combine selections.PNG

If it is, you could modify your formula based on my measure.

 

If I misunderstoond, please share your desired output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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

7 REPLIES 7
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Nimmi,

 

Normally, we could use SELECTEDVALUE(TableName[Table value]) to get the selected value in slicer.

 

More details will help us to understand your scenario better.

 

Are the values in your two slicers coming from different tables?

 

If it is convenient, could you share some data sample which could reproduce your scenario and you desired output so that we could help further on it.

 

Best Regards,

Cherry

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

Yes the values are coming from different tables for two slicers.

table 1 for select metric : Average million

             Total Million

             relative diff

             number of operations.

 

Table 2 for selecat breakdown : asset

              well

              operation type

From the 2 slicers we should select one from mertic and one from breakdown, So total 12 possible combinations will be applicable for chart. how can I write measure for this.

Hi @Nimmi,

 

Do you want to achieve the output like below?

 

Capture.PNG

 

If it is, please create the measure with the formula below.

 

Measure = 
CALCULATE (
SELECTEDVALUE ( Breakdown[breakdown] ) & " && "
& CALCULATE ( SELECTEDVALUE ( Matirc[metric] ) )
)

If you still need help, please share your desired output so that we could help further on it.

 

Best Regards,

Cherry

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

Hi @v-piga-msft,

Please check my screen shot and update the measure.

Hi @Nimmi,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best Regards,

Cherry

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

Capture3.PNG here

Here I have written measure for select metric, I need to add select breakdown options also. It is combination of two slicers.

How can I add select Breakdown options to switch ?

Hi @Nimmi,

 

I have made a sample to reproduce your scenario.

 

If I understand your requirement correctly that you want to get the output below.

 

combine selections.PNG

If it is, you could modify your formula based on my measure.

 

If I misunderstoond, please share your desired output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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.