Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I am trying to do the below calculation to sum the Annual GP based a couple of filters, but as soon as I try and do the filter actualclosedate>X then it doesn't work and just sums all Annual GP. See below formula, can someone take a look and see where I am going wrong.
Solved! Go to Solution.
Hi @ARCherry ,
Try this measure:
AGP Removed =
CALCULATE (
SUM ( Opportunity[Annual GP] ),
(Opportunity[new_ContractType] = 279640002
|| Opportunity[new_ContractType] = 279640000
|| Opportunity[new_ContractType] = 957500000) &&
Opportunity[ActualCloseDate] > DATE( 2020, 1, 15)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsGive date like
date(2020,1,15)
Hi @,
Can you please try the following DAX expression please:
AGP Removed = CALCULATE(
SUM(Opportunity[Annual GP]),
FILTER('Opportunity',
(Opportunity[new_ContractType]=279640002 || Opportunity[new_ContractType]=279640000 || Opportunity[new_ContractType]=957500000)
&& (Opportunity[ActualCloseDate]>15/01/2020)
)
)
If this helpf give Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Hi @ARCherry ,
Try this measure:
AGP Removed =
CALCULATE (
SUM ( Opportunity[Annual GP] ),
(Opportunity[new_ContractType] = 279640002
|| Opportunity[new_ContractType] = 279640000
|| Opportunity[new_ContractType] = 957500000) &&
Opportunity[ActualCloseDate] > DATE( 2020, 1, 15)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks Miguel! That has worked.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |