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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NawilatiMahmoud
Frequent Visitor

how to use multiple filter in "Sumx calculate value" Dax

Dear Team,

 

I need help in adding multiple filters to the below measre :

 

Out Standing =
 SUMX(VALUES('Date'[Date]),
 CALCULATE(SUMX(FILTER('Claims', Claims[TRANS_DATE] <= MAX('Date'[Date]) && 'Claims'[TRANS_DATE - End Date]>= MIN('Date'[Date])),DIVIDE('Claims'[NET_TRANS_AMT_LC],DATEDIFF('Claims'[TRANS_DATE], 'Claims'[TRANS_DATE - End Date], DAY)+1)))) = This Dax is for dividing the "NET_TRANS_AMT" per day based on slider date
 
i need the other filletrs as below:
01- by CLAIM_TRANS_TYPE =  "Text = Resreve"
02 - and only values that start date is within the 'Date'[Date} slider perioed, thats mean if the slider starting from 01-03-2022 it will ignore all records before that date and only calculate the recordes within the slider period 
 
Data As Below Example:
 
 
GPD_PLC_IDCLAIM_TRANS_TYPETRANS_DATENET_TRANS_AMT_LCTRANS_DATE - End Date
1891292Payment12/02/2021 13:01:005512/12/2021 13:01:00
1891292Reserve12/02/2021 12:35:0166112/12/2021 12:35:01
1891292Reserve12/14/2021 12:14:499112/24/2021 12:14:49
1886030Reserve12/16/2021 15:05:191,49512/26/2021 15:05:19
1891292Reserve12/01/2021 10:02:00-19,77312/11/2021 10:02:00
1870455Reserve02/13/2022 13:00:345,00002/23/2022 13:00:34
1891292Reserve12/01/2021 15:25:018,44612/11/2021 15:25:01
1891292Payment12/02/2021 15:37:001,48712/12/2021 15:37:00
1880577Reserve12/16/2021 15:53:105,00012/26/2021 15:53:10
1891292Reserve12/02/2021 09:14:00-1,45312/12/2021 09:14:00
1891292Reserve12/02/2021 13:01:00-4712/12/2021 13:01:00
1891292Reserve12/21/2021 11:01:00-29512/31/2021 11:01:00
1891296Reserve12/02/2021 16:46:0240012/12/2021 16:46:02
1891292Reserve12/02/2021 15:57:00-5812/12/2021 15:57:00
1891292Reserve01/24/2022 17:21:05-12,96902/03/2022 17:21:05
1891292Reserve01/24/2022 17:26:3425002/03/2022 17:26:34
1891292Reserve01/24/2022 17:31:051,29502/03/2022 17:31:05
1891292Reserve12/21/2021 10:50:00-17512/31/2021 10:50:00
1891292Reserve12/14/2021 09:59:4271812/24/2021 09:59:42
1891292Payment01/25/2022 11:54:0085602/04/2022 11:54:00
1891296Reserve12/21/2021 12:02:004,50012/31/2021 12:02:00
1891296Reserve12/21/2021 12:17:303,72812/31/2021 12:17:30
1891292Payment12/02/2021 12:00:0030112/12/2021 12:00:00
1891292Reserve12/02/2021 12:57:134712/12/2021 12:57:13
1891292Reserve12/01/2021 13:38:1110,88512/11/2021 13:38:11

 

Thanks in Advance 🙂

2 REPLIES 2
NawilatiMahmoud
Frequent Visitor

No dear it's not working its reflect a blank amount.

v-rzhou-msft
Community Support
Community Support

Hi @NawilatiMahmoud ,

 

I think you can create a new measure based on [Out Standing] measure.

New Out Standing =
VAR _SLIDER_DATE =
    SELECTEDVALUE ( 'Date'[Date] )
RETURN
    CALCULATE (
        [Out Standing],
        FILTER (
            ALL ( Claim ),
            AND ( Claim[CLAIM_TRANS_TYPE] = "Resreve", Claim[TRANS_DATE] >= _SLIDER_DATE )
        )
    )

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors