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
cristianml
Post Prodigy
Post Prodigy

Measure For Table data changed

Hi,

 

I need a measure that the Logic is IF the Level from Table 1 is NOT EQUAL TO Level from Table 2 THEN "PROMOTION", If not THEN "" or BLANK

 

Table 1 Table 2
LevelName LevelName
12 - Associatenatalia 11 - Analystnatalia

 

How can I do this ?

Thanks

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @cristianml 

How do the two tables relate?

If they have a relationship as below

13.png

Then you could create a measure like this

Measure = IF(MAX(Table1[Level])<>MAX(Table2[Level]),"PROMOTION",BLANK())

12.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @cristianml 

How do the two tables relate?

If they have a relationship as below

13.png

Then you could create a measure like this

Measure = IF(MAX(Table1[Level])<>MAX(Table2[Level]),"PROMOTION",BLANK())

12.png

 

Best Regards
Maggie

 

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

Hi @v-juanli-msft ,

 

It works but I need to add another variable to say that If column "Name" is equal then "yes". This is Because sometimes I have NEW people and in those cases the previous formula put yes to the promoted measure:

 

I tried but I donot know where is the error:

Promotion Q3 =
IF(AND(MAX(('Resource Forecast Q3'[Level Type]) <> MAX('Resource Actual'[Level Type])),
MAX(('Resource Forecast Q3'[Name]) = MAX('Resource Actual'[Name]))),
"YES",
BLANK ())
 
Thanks,
 
AnndreyMacedo
Frequent Visitor

I do not quite understand what you need, but you know the function ISINSCOPE. Returns true when the specified column is the level in a hierarchy of levels.

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!

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.