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
sanjoyleo
Helper I
Helper I

Sales Vs return comparison

Hi ,

 

I have 2 tables, Transaction and Retun (see below)  . Now I want to show for each Month what was the Transaction_Amt Vs Return_Amt .

When I used "Line and Clusterd Column Chart" I got the 2 Bar --1 for Sales and one for Return Amont (in "Column values" I kept 2 filed's Sum separately)  ..

but in Shared Axis , if I take Transaction Year-Month , Then Return_Amt for each month became avg accross all month/year..

 In Shared Axis ,If I take Return table's Year-Month , then Transaction_Amt for each month is showing as Avg.

 

So I feel we need to use single Month-Year colum which will split the Transaction Vs Return both. 

How can I use single Date column for both table ? Basically I want to show Transaction_Amt Vs Return Amonth on date wise(month-Year)

 

 

Transaction   Return   
YearMonthTransaction_Amount_Total YearMonthReturn_Amount 
2017May23.37 2017May7.79 
2016May19.5 2016May15.75 
2016June634.37 2016June634.37 
2015January1984 2015January5 
2015February2658.4 2015January7 
2015May51.5 2015January20 
2013August29 2015January22 
2013November2328.71 2015January23.5 
2013December4701.7 2015January26 
2012July71.5 2015January42 
2011December12 2015January120 
2010January3599.5 2015January250 
2010February9893.77 2015February10 
2010March4 2015February13.5 
2010April103 2015February21 
2010May11340.6 2015February25.2 
2010September8209.9 2015February33.6 
2010November100.5 2015February34 
2010December93.25 2015February34.5 
2009December365165.38 2015February40.1 

 

Sales_Return.png

 

 

 

1 ACCEPTED SOLUTION

3 REPLIES 3
jthomson
Solution Sage
Solution Sage

You need a calendar table that you can relate both of your current tables to. I don't know if there's an underlying date in your existing tables orn just a year and month column, but I'd make one if there isn't (fairly straightforward to do so using DATE and your year/month columns, just stick in a dummy day if needed).

Both the tables's column is [datetime] Type ,like  2010-05-25 21:29:13.077  ..

So are you sating to create a new Table with 3 column .. one with date , next is for Transac_Amt , and the 3rd column as Return_Amt ..

and then populate this table from those 2 table ?

 

I am new to Power BI , started 20 days back . Please help !

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.