Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
keen
Frequent Visitor

Dateadd function error for some product

Hi Team, 

I use this formula to get previous month total booking.

Relationship- (Booking table (*) & Date table (1))

but why some of the product bookingprevmonth data disappeared?

keen_3-1703865076030.png

Current Product A outcome: booking prev month ok

keen_0-1703864953848.png

Current Product B outcome: why the booking prev month data disapperad ?

keen_1-1703864979184.png

Current Product C outcome:why the booking prev month data disapperad ?

keen_2-1703865001579.png

 

4 REPLIES 4
PijushRoy
Super User
Super User

Hi @keen 

Please check the date for Products B, C, and Calendar Date
The calendar date is marked as a Date Table in Power BI

PijushRoy_0-1703878479623.png

Check the Measure, [Total Booking Qty] is not exclude the Product B and Product C

If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS

Thanks
Pijush

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





I try use dateadd , parallelperiod, previousmonth function to create previous month booking. 

Some of the product ok to appear previousmonthbooking, but some products are not .

Product is slicer.

Please see example at below. What is the wrong step i apply ? 

 

Product a

keen_0-1703913170844.png

Product B

keen_1-1703913188759.pngkeen_2-1703913209645.png

Hi @keen 

Please create one sample pbix file and share google drive link (give access to anyone) to get answer quickly. (Only sample data, remove sensitive information)




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Yes, The calendar date is marked as a Date Table in Power BI

Total Booking QTY = sum(Booking[Qty])
Everything check ok. 
 
but reach dateadd function, some products no able to get Bookingprevmonth , why this happen?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.