Forum Discussion

Arrow2727's avatar
Arrow2727
New Member
3 years ago

DAX

Hey hai everyone,
I Need a dax meausre for the following excel formula

=SUMIFS('ST PFP Report'!$G:$G,'ST PFP Report'!$D:$D,$A3,'ST PFP Report'!$K:$K,">0",'ST PFP Report'!$C:$C,"*Commercial*")+SUMIFS('ST PFP Report'!$H:$H,'ST PFP Report'!$D:$D,'PFP Residential'!$A3,'ST PFP Report'!$K:$K,">0",'ST PFP Report'!$C:$C,"*Commercial*")
  i had tried with below meuasure but im not getting desired values as out put 

Total =
SUMX(
FILTER(
'ST PFP Report',
'ST PFP Report'[D] = SELECTEDVALUE('PFP Residential'[A3]) &&
'ST PFP Report'[K] > 0 &&
CONTAINS('ST PFP Report'[C], "Commercial")
),
'ST PFP Report'[G]
)
+
SUMX(
FILTER(
'ST PFP Report',
'ST PFP Report'[D] = SELECTEDVALUE('PFP Residential'[A3]) &&
'ST PFP Report'[K] > 0 &&
CONTAINS('ST PFP Report'[C], "Commercial")
),
'ST PFP Report'[H]

colud any one please help me please

 

2 Replies

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, Arrow2727 

     

    Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

     

    Best Regards,

    Community Support Team _Charlotte

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