Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!
I have the following star schema model. I want to create a measure which returns "Yes" if a customer has bought from Product Group A at least once. Otherwise the measure should return "No". Can you please help me with this?
Thanks!
Please find the model attached.
The model
Solved! Go to Solution.
@Anonymous , Try a measure like
if(isblank(calculate(sum(FactQuote[Offered]), filter(Dimproduct, dimproduct[Product Group] ="Group A"))), "No", "Yes")
Hi @Anonymous,
You can also try to use the 'filter' and 'countrows' functions to calculate with table records with specific conditions. After these functions calculated, you can add 'if statement' to compare the result value to return tags.
Regards,
Xiaoxin Sheng
Hi @Anonymous,
You can also try to use the 'filter' and 'countrows' functions to calculate with table records with specific conditions. After these functions calculated, you can add 'if statement' to compare the result value to return tags.
Regards,
Xiaoxin Sheng
@Anonymous , Try a measure like
if(isblank(calculate(sum(FactQuote[Offered]), filter(Dimproduct, dimproduct[Product Group] ="Group A"))), "No", "Yes")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |