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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Orstenpowers
Post Patron
Post Patron

Measure does not work

Dear all,
My below measure does not work...I guess it is related to the fact that it comes from two different fields "salesoffices" and "IObOL new (incl K Group)".
How to overcome this problem? Hopefully someone can help me...
 
Sales off vs Country = IF(SELECTEDVALUE(salesoffices[Sales office country]])=SELECTEDVALUE('IObOL new (incl K Group)'[Country name]),"identical","deviating")
3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Orstenpowers 

Thanks for reaching out to us.

I think the reason why measure doesn't work is that when the data comes from two tables, you can't directly use the selectedvalue() to get and compare them.  Generally speaking, we usually use the key between the two tables and then filter to get the corresponding row, and then compare. Can you share some sample data so I can investigate further. Thanks.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Orstenpowers , Are these values selected in slicer?

Try like

Sales off vs Country = IF(Max(salesoffices[Sales office country]])=Max('IObOL new (incl K Group)'[Country name]),"identical","deviating")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I did not use a slicer.

 

Unfortunately your formula does not work. I get message that "column Sales office country]])=Max('IObOL new (incl K Group)'[Country name was not found in table "salesoffices" or is not being allowed to be used in this term...

 

What needs to be adjusted?

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors