Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi !
I am trying to create a measure which subtracts filtered value based on month (Current month - previous month.)
Sum of the Actual Value for June where Type = "$" - Sum of the Actual Value for Previous Month (May) where Type = "Est"
i.e. 3,300 - 1,600=700
Segment | Country | Product | Discount Band | Value | Budget/Fcst/Actual | Type | Date | Month Number | Month Name | Year |
Midmarket | France | Carretera | None | 2500 | Actual | $ | 6/1/2014 | 6 | June | 2014 |
Midmarket | Germany | Carretera | None | 800 | Actual | $ | 6/1/2014 | 6 | June | 2014 |
Midmarket | Mexico | Carretera | None | 1500 | Actual | Est. | 5/1/2014 | 5 | May | 2014 |
Midmarket | Germany | Montana | None | 100 | Actual | Est. | 5/1/2014 | 5 | May | 2014 |
Thank you.
Solved! Go to Solution.
Hi @lab
You can try creating following measures:
CM Value= calculate(sum('TableName'[Value]), 'TableName'[Type] = "$")
PM Value = calculate(sum('TableName'[Value]), 'TableName'[Type] = "Est.", 'TableName'[Month Number] = 'TableName'[Month Number] - 1)
Diff Value = [CM Value] - PM Value]
Thanks,
Dheeraj
Hi @lab
You can try creating following measures:
CM Value= calculate(sum('TableName'[Value]), 'TableName'[Type] = "$")
PM Value = calculate(sum('TableName'[Value]), 'TableName'[Type] = "Est.", 'TableName'[Month Number] = 'TableName'[Month Number] - 1)
Diff Value = [CM Value] - PM Value]
Thanks,
Dheeraj
Thanks !
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
82 | |
47 | |
42 | |
33 |
User | Count |
---|---|
186 | |
80 | |
72 | |
48 | |
45 |