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
Anonymous
Not applicable

Combine two different date DATA in one Graphic

Hello Guys,

 

I need to combine two different date DATA in one graphic.

Everyday i compare the data of yesterday with the same day but in W-1.

Example : i compared monday 25th of november with Monday 18th of november.

 

Can you help me please ?

 

advance thanks

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create calendar table like DAX below, then create relationship between your fact data table and calendar table on date field.

 

Calendar = CALENDAR(MIN(data[Date]),MAX(data[Date]))  
 
Or
 
Calendar =CALENDARAUTO() 

 

Then you can create measure using calendar[Date].

 

Total last week = CALCULATE(SUM(data[value]),DATEADD(Calendar[Date],-7,DAY))

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create calendar table like DAX below, then create relationship between your fact data table and calendar table on date field.

 

Calendar = CALENDAR(MIN(data[Date]),MAX(data[Date]))  
 
Or
 
Calendar =CALENDARAUTO() 

 

Then you can create measure using calendar[Date].

 

Total last week = CALCULATE(SUM(data[value]),DATEADD(Calendar[Date],-7,DAY))

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

JarroVGIT
Resident Rockstar
Resident Rockstar

There isn't really much to go on here, the answer is completely dependend on your datastructure and what visual you are aiming for. Can you share sample data and which visual you want? Then we can see if we can help you out with this 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors