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
krwalke
Frequent Visitor

Combining Two Date Fields In A Measure or Table?

Hi Everyone,

 

I've been scratching my brain for too long and need to ask for help on this one. I have two queries with dates and specific values, that I have put in visuals.  

 

krwalke_1-1673884515932.png

Table 1 (top) is Revenue

Table 2 (bottom) is Spoilage

 

What I'd like to do is simply take my Spoilage and divide it by Revenue to get a % Spoilage, in a visual (preferably the same as Table 2).

 

What I'm running into is that the date field for Table 1 and Table 2 are different, and they must stay different.

 

I believe I need to get these two data sets to have a common x-axis (date axis) before I can divide one from another.  Ideally, I would just tranform the date fields for each into Month Year format, but I'm struggling with the best way to do it.  Bins?  Group by?  In Power Query or not?

 

This seems like it should be simple, but I can't get it.  Any help would be appreciated!  Thanks!

 

Kevin

 

1 REPLY 1
DataInsights
Super User
Super User

@krwalke,

 

Does your model have a date table? If not, see the article below. The concept is to create a date table that is shared by all fact tables in your model. Create a relationship between the date table and each of your two queries, and use date table fields in your visuals.

 

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/ 





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