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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gvlado
Advocate III
Advocate III

Two datasets with different period of data need to be reported for the same period

Hello
I have two datasets - Inventory and Sales
Need to produce raport for inventory and sales for the same period ( sales period)
The problem is how to make union of data ( period of time) from both datasets
Printscreen can explain

gvlado_1-1696056669857.png

gvlado_2-1696056694059.png


gvlado_3-1696056711361.png

 Inventory    Sales    Report Inventory    Report Sales     
 DateProductInventory  DateProductSales  Inventory1.10.20232.10.2023Average Inventory Sales1.10.20232.10.2023Total sales Average Sales
 

 

 
31.12.2022A10  1.10.2023A5  A
 

 

10
2015 A
 

 

5
2025 12,5
 1.10.2023A20  2.10.2023A20  B203025 B5510 5
 2.10.2023A20  1.10.2023B5  C304035       
 

 

 
3.10.2023A30  2.10.2023B5             
 1.10.2023B20       The question is          
 2.10.2023B30       how to find same period  (first date and last date from sales) for calculation (report)    
 

 

 
3.10.2023B40
 

 

 
      on both dataset ( Inventory and sales), and      
 1.10.2023C30       not to forget product C in inventory even it is not founded on sales    
 2.10.2023C40  First date of sales1.1.2023.             
 

 

 
3.10.2023C50  Last date of sales2.1.2023.             
                      
 First date of Inventory31.12.2022.                
 Lat Date of inventory 1.3.2023.                 


Tere is alway someone that already know the knowledge - 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBi file.

Ashish_Mathur_0-1696125045968.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @gvlado,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBi file.

Ashish_Mathur_0-1696125045968.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Great simple solution - thanks a lot
I always learn something

Idrissshatila
Super User
Super User

Hello @gvlado ,

 

try to make a dim date table that is based on the sales date column and link it to both tables and see values through this date table.

 

dim_date =
CALENDAR ( MIN ( sales[Date] ), MAX ( Sales[Date] ) )
 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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