Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
79 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |