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, new to power bi and try to learn from hands-on task.
Sample data:
Table 1 sample data (source data):
| User_ID | Time_date | App_Category | loc_Type |
| 0 | 001 | 'Music' | 'Residence' |
| 0 | 002 | 'Music' | 'Hotel' |
| 0 | 003 | 'Travel' | 'Restaurant' |
Table 2 (created from the visulasation page, cross join from 2 columns from the different table)
| App_Category | loc_type |
| Music | Residence |
| Music | Hotel |
| Music | Resturant |
| Travel | Residence |
| Travel | Hotel |
| Travel | Resturant |
What I want to archieve is to add a count column that count the number of ourrance of both columns in table 2 in table 1:
| App_Category | loc_type | Count |
| Music | Residence | 1 |
| Music | Hotel | 1 |
| Music | Resturant | 0 |
| Travel | Residence | 0 |
| Travel | Hotel | 0 |
| Travel | Resturant | 1 |
Can anyone give me a hint on how to do it? Thanks!
Solved! Go to Solution.
Thank you for your response, I figured it out after reading a few related post. If anyone is wonder, this is my solution:
@tc5613213 Should be easy, can you share the mock up pbix file of the sampel data as well.
Thank you for your response, I figured it out after reading a few related post. If anyone is wonder, this is my solution:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |