Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
abeerq
New Member

How to have 2 condition columns result

 

Dears, 

 

I'm looking for your usual support as I am facing an issue on how to do the measure what i need as below: 

 

I want to do a KPI measurement on how many change request dose the project number has if it has 3 or less than CR ID it would be within target if other than this would be below target so the comparing between ( Project Number and CR ID) 

 

Kindly advise me in this matter

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @abeerq ,

Please try to use following measure if it works for your requirement:

Measure =
VAR currID =
    SELECTEDVALUE ( Table[CR ID] )
VAR currCount =
    COUNT ( table[Project] )
RETURN
    IF (
        currCount = 3
            || currCount < currID,
        "Within",
        DIVIDE ( currCount, currID, 0 )
    )

If above not help, please share some sample data and expected result for test.

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @abeerq ,

Please try to use following measure if it works for your requirement:

Measure =
VAR currID =
    SELECTEDVALUE ( Table[CR ID] )
VAR currCount =
    COUNT ( table[Project] )
RETURN
    IF (
        currCount = 3
            || currCount < currID,
        "Within",
        DIVIDE ( currCount, currID, 0 )
    )

If above not help, please share some sample data and expected result for test.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors