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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
KevBI
Helper I
Helper I

Measure that checks multiple Rows based on one value

Hey Guys,

I can't come up with this Measure, I hope you can help me out!

I have following Table: 

PO-NumberPO CategoryPrice
12300E90
12300Q90
22200E45
22200Q45
33500E20
44000E57


So the Measure that I am trying to come up with should check if a PO Number has the Category "E", but not the Category "Q". 
If that Case is true, and no row has the category "Q", the Price would be added to the Measure.

Thanks a lot!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Ok,


sO HERE IT IS

JamesFr06_0-1653467026018.png

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Ok,


sO HERE IT IS

JamesFr06_0-1653467026018.png

 

wow great, thank you so much!!!

I would have another question that i forgot. 
The Price is in another Table with the same PO-Numbers.

Do you know how i could put the price from another table in the variable "selectprice" ?

Anonymous
Not applicable

Yes you can if you put this field in the final report.

Just change teh reference in selectprice

Anonymous
Not applicable

Hi

 

Just to be sure. Is it what youare looking for ?

JamesFr06_0-1653465725400.png

 

2022-05-25 10_18_46-Re_ Measure that checks multiple Rows based on one... - Microsoft Power BI Commu.png

The red ones should also be blank, as these PO Numbers have a row with "E" and a row with "Q".
The last two ones are correct as they only have a row with "E".

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.