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
Amardeep100115
Post Prodigy
Post Prodigy

total Sales

Hi 

 

Please help with results wich is have in pivote of attached file 

 

 

Saple data 

Amardeep Bhingardeve
1 ACCEPTED SOLUTION

@Amardeep100115 

 

Apart from the Calendar table, you can create two measures:

 

Total Sales(m) = SUM(Sales[Total Sales]))

Total Profit(m) = SUM(Profits[Profits])

 

pbix file 

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

View solution in original post

3 REPLIES 3
Amardeep100115
Post Prodigy
Post Prodigy

Could you please share DAX for this? If possible

 

 

Amardeep Bhingardeve

@Amardeep100115 

 

Apart from the Calendar table, you can create two measures:

 

Total Sales(m) = SUM(Sales[Total Sales]))

Total Profit(m) = SUM(Profits[Profits])

 

pbix file 

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

vivran22
Community Champion
Community Champion

Hello @Amardeep100115 

 

Based on the description provided, I would recommend following steps:

 

Create the connection with the Sales and Profit table and Transform in Power Query

 

Convert the CID as text:

type text.PNG

 

Create a reference table from Sales for CID and remove duplicates (see pbix file here). This will act as filter table in the data model:

 

Reference.png

 

Create a calendar table

 

Calendar.PNG

 

Create relationship between the tables

 

Relationship 1.PNGRelationship 2.PNG

Use Matrix visual to get the desired output:

Solution.PNG

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

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.