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
What can i use to achieve this? Thanks.
Solved! Go to Solution.
Hi @meghansh
Please try this:
Here's the sample data:
Then add a calculated table:
Table =
SELECTCOLUMNS(
FILTER(
CROSSJOIN(
'Course',
SELECTCOLUMNS(
'Phase',
"_phase", 'Phase'[phase],
"_CourseID", 'Phase'[CourseID],
'Phase'[comment]
)
),
'Course'[CourseID] = [_CourseID] && 'Course'[phase] = [_phase]
),
'Course'[CourseID],
'Course'[phase],
'Course'[start date],
'Course'[end date],
'Phase'[comment]
)
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @meghansh
Please try this:
Here's the sample data:
Then add a calculated table:
Table =
SELECTCOLUMNS(
FILTER(
CROSSJOIN(
'Course',
SELECTCOLUMNS(
'Phase',
"_phase", 'Phase'[phase],
"_CourseID", 'Phase'[CourseID],
'Phase'[comment]
)
),
'Course'[CourseID] = [_CourseID] && 'Course'[phase] = [_phase]
),
'Course'[CourseID],
'Course'[phase],
'Course'[start date],
'Course'[end date],
'Phase'[comment]
)
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
your sample data does not demonstrate the need for a many to many relationship. Provide sample data with more course IDs, for example.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |