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,
Previously thanks for the help,
I have calculated previous month sum of values with using formula as below (Which is working fine ) :
Solved! Go to Solution.
Hi @Anonymous,
You may try this Measure.
Previous_month = CALCULATE(SUM(TableA[A]),DATEADD(Dates[Date_2022],-1,MONTH),FILTER(TableA,TableA[Value]="EW"))
The result will look like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @Anonymous,
You may try this Measure.
Previous_month = CALCULATE(SUM(TableA[A]),DATEADD(Dates[Date_2022],-1,MONTH),FILTER(TableA,TableA[Value]="EW"))
The result will look like this.
Also, attached the pbix file as reference.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @Anonymous ,
Please try this:-
Previous month =
CALCULATE (
SUM ( TableA[A] ),
FILTER ( TableA, TableA[Value] = "EW" ),
FILTER ( ALL ( Dates ), DATEADD ( Dates[Date_2022], -1, MONTH ) )
)
BR,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Samarth_18 ,
Thanks for the reply.
I am getting incorrect output using this formula. Kindly help if any other formula available.
Thanks
Shipra
@Anonymous , Its bit difficult to answer without data and expected output. You could try this as well:-
Previous month =
CALCULATE (
SUM ( TableA[A] ),
FILTER ( TableA, TableA[Value] = "EW" ),
FILTER ( Dates , DATEADD ( Dates[Date_2022], -1, MONTH ) )
)
or please share the sample data in text format(not a screenshot) with expected output.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |