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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tex628
Community Champion
Community Champion

Assistance needed

Hi! 

 

I'm having some issues with something im trying to create. 

 

Untitled.png

 

I need to identify the German (DE) ID's where the price doesn't match the Swedish (SE) price for the same ID. The Norweigan (NO) are irrelevant.

I've been sitting with alot of different dax formulas but I can't seem to find a solution.

 

Help would be greatly appreciated! 


Connect on LinkedIn
1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @tex628,

 

Based on my test, you should be able to use the formula below to create a calculate column in your table to identify the German (DE) ID's where the price doesn't match the Swedish (SE) price for the same ID .

Tag = 
VAR sePrice =
    CALCULATE (
        FIRSTNONBLANK ( Table1[Price $], 1 ),
        FILTER (
            ALL ( Table1 ),
            Table1[ID] = EARLIER ( Table1[ID] )
                && Table1[Origin] = "SE"
        )
    )
RETURN
    IF ( Table1[Origin] = "DE" && Table1[Price $] <> sePrice, 1, 0 )

c1.PNG

 

Then you can use the tag column as visual level filter or as Slicer to show the result on the report.

 

r1.PNG

 

Here is the sample pbix file for your reference. Smiley Happy

 

Regards

View solution in original post

5 REPLIES 5
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @tex628,

 

Based on my test, you should be able to use the formula below to create a calculate column in your table to identify the German (DE) ID's where the price doesn't match the Swedish (SE) price for the same ID .

Tag = 
VAR sePrice =
    CALCULATE (
        FIRSTNONBLANK ( Table1[Price $], 1 ),
        FILTER (
            ALL ( Table1 ),
            Table1[ID] = EARLIER ( Table1[ID] )
                && Table1[Origin] = "SE"
        )
    )
RETURN
    IF ( Table1[Origin] = "DE" && Table1[Price $] <> sePrice, 1, 0 )

c1.PNG

 

Then you can use the tag column as visual level filter or as Slicer to show the result on the report.

 

r1.PNG

 

Here is the sample pbix file for your reference. Smiley Happy

 

Regards

Anonymous
Not applicable

You just want to identify these and not do any further visualization or calculation?

 

Try this,

Create a slicer with Country (Orgin) and select SE AND DE

Create a table visual where you put ID on values and define a new measure that will identify the ID's like this:

DifferentPrice =
IF(AVERAGE(Data[Price])<>MAX('Data'[Price]);1)

 

Skärmklipp.PNG

 

All done!

 

Br,

Magnus

tex628
Community Champion
Community Champion

The price row will sometimes deal with mix of string and integer values so I cant get the datatype right and therefore im having issues using your solution. I trying different workarounds now.

 

Br, Johannes


Connect on LinkedIn
Back2Basics
Resolver I
Resolver I

I'm not sure this needs Power BI. Can't you just do this manually? it's a very small dataset

I'm not able to use the accual dataset here. The one im working with contains over 50 000 rows. Sorry that I have to use a stand-in! 


Connect on LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors