Forum Discussion
Unicorn_Tech
Resolver I
5 years agoCountif equivalent in Power BI
Hello. I have a column in TableA that is a concatenate of two fields: ProductID and CountryID. In TableB, I have another column that is also a concatenate of ProductID and CountryID. I am looking...
- 5 years ago
I ended up doing this, but I feel it's a bit convulted. I couldn't get the above solutions to work.
Match record = if(ISBLANK(lookupvalue(TableB[check], TableB[check], TableA[Check])),"No record", "Record")
AlB
Community Champion
5 years agoHi Unicorn_Tech
An example based on sample data with the expected result would help understanding the requirement. Try this:
1. Place TableA[Column1] in a table visual
2. Create this measure and palce it in the visual:
Measure =
IF (
CALCULATE (
COUNT ( TableB[Column1] ),
TREATAS ( SELECTEDVALUE ( TableA[Column1] ), TableB[Column1] )
) > 0,
TRUE (),
FALSE ()
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers