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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I hope you all doing great.
I tell you my problem.
I have a measure that returns de CPK of a data table.
I have another table with categories, like this:
Code | Min | Max |
A | 0 | 1 |
B | 1 | 2 |
C | 2 | 3 |
I need to make another measure that takes the current CPK value, and check the Code when the CPK is between Min and Max.
Is this possible?
Thanks in advance.
Solved! Go to Solution.
This measure will return the Code based on the CPK result. It assumes there is no relationship to the Code table.
CPK Code = var thisCPK = [YourCPKMeasure]
return calculate(MIN(Code[Code]), Code[Min]<= thisCPK, Code[Max]>= thisCPK)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
This measure will return the Code based on the CPK result. It assumes there is no relationship to the Code table.
CPK Code = var thisCPK = [YourCPKMeasure]
return calculate(MIN(Code[Code]), Code[Min]<= thisCPK, Code[Max]>= thisCPK)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Your are correct, there is not relation with the Code table.
I'm going to try this and let you know
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.