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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Difficult comparison

Hi,

 

I have a dataset like: 

 

IDCodeCheck1Check2
1100TF
1100TF
1100TF
1200FT
1200FF
2100TT
2200TF
2200TF
3100TF
3200TF

 

If Code is 100, Either Check 1 or Check 2 is T (in every record), then overall check for code 100 with be "T" for that ID.
If Code is 200, then atleast one row should have "T" in check 1 or check 2, this will make code 200 as "T".
Now, rolling up to ID level, if code 100 and code 200 is "T", ID is "T" else "F".

 

How can I calculate this? Either a summary table or measure to calculate count of IDs being T/F will work for me.

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,


If Code is 100, Either Check 1 or Check 2 is T (in every record), then overall check for code 100 with be "T" for that ID.
If Code is 200, then atleast one row should have "T" in check 1 or check 2, this will make code 200 as "T".


 

 

I'm still a little confused about your requirement. Is the two centence above your descrption for your data table?

 

And your requirement is to check if the ID is T or F?

 

Could you share your expected output as visual so that we could understand your requirement better?

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
affan
Solution Sage
Solution Sage

Hi @Anonymous,

 

Can you please share the expected result for the data shared in the question

Anonymous
Not applicable

The expected result is to check if the ID is T or F. Every ID needs to be checked for Code 100 and code 200. If either of Code 100 or Code 200 is F, overall is F

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.