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.
i am wanting to add a column to my table. i want to be able to subtract the current months forecast number minus the previous months forecast number. i have a month column also in the same table. i have tried a few different formulas and i always get an error. any help would be great!
Solved! Go to Solution.
Hey @jbenson
Lets try something more simple. To do that, you need to have a calendar table (you can create one using DAX if you don't have one).
Relate the calendar table with your Grain Margin table. After that, create two measures and that's it. See images bellow:
Best Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
i got it to work, thank you for your help!
Hey @jbenson !
Nice!!!! If this posts helps, please mark as solved to help other in our community.
Best Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
Hey Marcel I appriciate the quick response, here is what i used for a formula
Hey @jbenson
Lets try something more simple. To do that, you need to have a calendar table (you can create one using DAX if you don't have one).
Relate the calendar table with your Grain Margin table. After that, create two measures and that's it. See images bellow:
Best Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
the below is my sample data, i want to calculate the previous month number.
please help me on this.
Regards.,
Swamy
thanks for the help, but I was able to get the previous month data using calculated column and done the report.
Regards.,
Swamy
can you please send me the sample PBI file to me. I'm struggling to get the exact result for the past one week. lavisam0518@gmail.com
Regards.,
Swamy
Hey @jbenson
Maybe you can try something like bellow:
Forecast Difference =
VAR CurrentMonth = 'Table'[Month]
VAR PreviousMonth =
CALCULATE ( MAX ( 'Table'[Month] ), 'Table'[Month] < CurrentMonth )
RETURN
IF (
ISBLANK ( PreviousMonth ),
BLANK (),
'Table'[Forecast Number]
- CALCULATE ( MAX ( 'Table'[Forecast Number] ), 'Table'[Month] = PreviousMonth )
)
Best Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |