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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.