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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
juanlopezmeyer
Frequent Visitor

Dynamic Filter

Hi everyone; 

 

I need to compare values from a table with values from a calculated measure. 

In the table there will be 4 countries and the calculated measure will be one of them. So I need to make two groups, group one that is the country selected in the calculated measure and the rest of them. 

 

Thanks! Regards! 

6 REPLIES 6
LivioLanzo
Solution Sage
Solution Sage

Would you be able post a sample dataset? @juanlopezmeyer

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

HI @LivioLanzo, thanks for answer. 

I can not find the option to upload a file to the answer. 

If you give me an email I can send you an example.

Thanks again

 

 

Hi @juanlopezmeyer

 

you can upload it to dropbox and post a link

 

 

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

HI @LivioLanzo

 

The objective is to create a variable to use in the bar chart that allowed me to select a country from the filter and that country change color in the graph

@juanlopezmeyer,

Create the Paises table as below, then create a measure using DAX below in the Costo table.
1.PNG

Measure = SELECTEDVALUE(Paises[Codigo])


Drag the measure to your chart, and configure data color as shown in the screenshot below. Please note that we are only able to  configure  three different colors for three different countries but nor more than that.
2.PNG3.PNG

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.