Forum Discussion

AllanBerces's avatar
AllanBerces
Icon for Post Prodigy rankPost Prodigy
10 months ago
Solved

Measure with filter

Hi can anyone help on my measure count

1 . Alert 3 = X

2. Progress Pref = 0

3. Progress Inst is less than 100

 

RESULT

Job PrefabProgress Pref.Progress Inst.Alert 3
LS228700 
LP216300X
LP264000X
LP264000X
P219500X
LP219500X
LS20000100X
LS2000069.8X
LS20000100X
LS2000027.12X
LS200000X
LS218100 
LS230200X
LS222100X
LS222000X
LS219400X
1LS2217100100X
LS2017100100X
LS203410044.74X
LS203310044.74X
LS2030100100X
LS221810079.9X
LS2041100100X
LS22681000X
LS24481000X
  • Hi AllanBerces 

    Create the measure below and replace 'Sample Data' with the actual name of your table:

    Alert3_Count = 
    CALCULATE(
        COUNTROWS('Sample Data'),
        'Sample Data'[Alert 3] = "X",
        'Sample Data'[Progress Pref] = 0,
        'Sample Data'[Progress Inst] < 100
    )


     Outcome: 

     

     

  • Hi AllanBerces,

     

    If i've understood correctly, you want to row count where all these 3 mentioned conditions are true and row count should be 12.

    Kindly elaborate more if that's not the requirement.

    Attached is the .pbix file with solution.

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
    🔗 Curious to explore more? [Discover here].
    Let’s keep building smarter solutions together!

3 Replies

  • Hi AllanBerces 

    Create the measure below and replace 'Sample Data' with the actual name of your table:

    Alert3_Count = 
    CALCULATE(
        COUNTROWS('Sample Data'),
        'Sample Data'[Alert 3] = "X",
        'Sample Data'[Progress Pref] = 0,
        'Sample Data'[Progress Inst] < 100
    )


     Outcome: 

     

     

  • Hi AllanBerces,

     

    If i've understood correctly, you want to row count where all these 3 mentioned conditions are true and row count should be 12.

    Kindly elaborate more if that's not the requirement.

    Attached is the .pbix file with solution.

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
    🔗 Curious to explore more? [Discover here].
    Let’s keep building smarter solutions together!