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
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
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.