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 a case where I wan't to find the combination of ID and Idref where Message and Search occurs together. I'm not sure how I can create the column "Contains Message & Search". It should group by ID and Idref and check if both Message and Search occurs. If it does, then for all rows for the combination of ID and Idref then return 1, otherwise just return 0.
I've tried some combinations of group by, summarize (but don't want to create a new table)..
Would be great if someone can help me.
| ID | Idref | type | Contains Message & Search |
| 1 | 1 | Message | 0 |
| 1 | 1 | Given | 0 |
| 1 | 2 | Search | 0 |
| 1 | 2 | Given | 0 |
| 2 | 1 | Message | 1 |
| 2 | 1 | Search | 1 |
| 2 | 1 | Given | 1 |
| 3 | 1 | Message | 0 |
| 3 | 2 | Message | 0 |
| 3 | 2 | Given | 0 |
| 3 | 3 | Message | 1 |
| 3 | 3 | Search | 1 |
| 3 | 3 | Given | 1 |
Thanks!
Solved! Go to Solution.
Hi.
You can use the following measure:
Hi.
You can use the following measure:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 124 | |
| 107 | |
| 80 | |
| 69 | |
| 67 |