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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

DAX function for Threshold

I need to verify if a particular LWR meets a threshold. I've created a threshold table for this purpose and connected it to Crystal using a performance cell. The workflow should be such that when I select a specific LWR ID in the LWR table, it filters the performance cell in Crystal based on the meaningful code, which connects both tables. Then, the filtered performance cell should further filter the threshold and display the minimum threshold in kg and EUR.

I've written a DAX function for this, but I'm not obtaining the count of the number of LWRs meeting the threshold.

Could someone kindly provide assistance with this issues? Thank you. Need Help

 

Rajan_AN_0-1710344435021.png

 

Threshold_Meets =
VAR ActualRevenue = SUM('LWR'[Incremental Revenue EUR])
VAR ActualVolume = SUM('LWR'[Incremental Volume])
VAR SelectedArea = SELECTEDVALUE(CRYSTAL[Performance Cell])
VAR SelectedYear = SELECTEDVALUE('Date Table'[Year])
VAR ThresholdRevenue =
    CALCULATE(
        MAX('Threshold'[Threshold-Euro]),
        'Threshold'[E-CO-PCU-A: Performance Cell L2] = SelectedArea
    )
VAR ThresholdVolume =
    CALCULATE(
        MAX('Threshold'[Threshold-KG]),
        'Threshold'[E-CO-PCU-A: Performance Cell L2] = SelectedArea
    )
RETURN
    IF(
        ActualRevenue >= ThresholdRevenue && ActualVolume >= ThresholdVolume,
        "Threshold Met",
        "Threshold Not Met"
    )
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello Thank you for your response, I was able to figure out the way to get the count. Let me know if you are looking for solution

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello Thank you for your response, I was able to figure out the way to get the count. Let me know if you are looking for solution

Anonymous
Not applicable

Hi @Anonymous 

 

Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.