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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I wonder if someone can help me with this as I have been working on it for a while with limited success!!
I am trying to write a measure to show how many courses an instructor has taught since their last assessment.
My columns are:
'Table1' [Last Instructor Check]
'Table2' [Total Courses] (a measured column combining 2 types of courses so not sure if table name needed)
The complication for me is that using this measure I need to create conditioning based on the [Instructor Risk Level] (contains values H, M, L)
Is this achievable in PowerBi?
Many thanks 🙂
Solved! Go to Solution.
Hi @CSJ123 ,
Please hvae a try.
Create a measure.
measure =
SWITCH (
TRUE (),
[Instructor Risk Level] = "L"
&& [Last Instructor Check] < 6, "Green",
[Instructor Risk Level] = "L"
&& [Last Instructor Check] = 6, "Red",
[Instructor Risk Level] = "M"
&& [Last Instructor Check] < 3, "Green",
[Instructor Risk Level] = "M"
&& [Last Instructor Check] = 3, "Red",
[Instructor Risk Level] = "H", "Red",
BLANK ()
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CSJ123 ,
Please hvae a try.
Create a measure.
measure =
SWITCH (
TRUE (),
[Instructor Risk Level] = "L"
&& [Last Instructor Check] < 6, "Green",
[Instructor Risk Level] = "L"
&& [Last Instructor Check] = 6, "Red",
[Instructor Risk Level] = "M"
&& [Last Instructor Check] < 3, "Green",
[Instructor Risk Level] = "M"
&& [Last Instructor Check] = 3, "Red",
[Instructor Risk Level] = "H", "Red",
BLANK ()
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 20 | |
| 17 | |
| 14 | |
| 14 |