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
sam_nik12345
Helper II
Helper II

same value repeating issue

My sales and po tables looks like below:

datesales
2018-0112
2018-0223
2018-0334
2018-0445
2018-0555

 

datep/o
2018-0244
2018-0323
2018-0522

 

When I combine the visualization I get only total p/o values in all rows as below.

datesalesp/o
2018-011289
2018-022389
2018-033489
2018-044589
2018-055589

 

Can anyone help me solving this? Ideally it should look like below:

datesalesp/o
2018-0112 
2018-022344
2018-033423
2018-0445 
2018-055522
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @sam_nik12345 ;

Alternatively, you only need to create a measure.   Note: No relationship is required.

 

Measure = CALCULATE(SUM('PO'[p/o]),FILTER('PO',EOMONTH([date],0)=EOMONTH(MAX('sales'[date]),0)))

 

Best Regards,
Community Support Team_ Yalan Wu
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

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @sam_nik12345 ;

Alternatively, you only need to create a measure.   Note: No relationship is required.

 

Measure = CALCULATE(SUM('PO'[p/o]),FILTER('PO',EOMONTH([date],0)=EOMONTH(MAX('sales'[date]),0)))

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sam_nik12345
Helper II
Helper II

Hi @amitchandak 

 

How do I aggregate this to month level? The value I get at daily and needs to be aggregated to month. Kinldy advice.

@sam_nik12345 , Add month year to date tbale and use.

Please find the attached file after signature

Month Year = FORMAT([Date], "YYYY-MM")
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@sam_nik12345 , You have to create a common date table and join with both and then use measure from Sales and PO

 

Please find the file attached

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors