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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.