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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Yearly sales number in matrix table

Hi Everyone, 

 

I want to show global sales for each make/brand and the % it hold out of total sales. 

eg., Global sales should be as per the make and brand but Yearly set sales should only show the total of that year in this case for 2017 - 92625606, 2018 - 92488194 and so on. 

 

But as per the below ss it not showing just the total, the formula which i use before I had a date table was this 

CALCULATE(SUM('Master 2017 - 2023'[Sales]),ALLEXCEPT('Master 2017 - 2023','Master 2017 - 2023'[Month].[YEAR}]))
but once i added a date table for another measure this measure didnt apply as it it suppose too after even changing it to the related date tabel as 
 CALCULATE(SUM('Master 2017 - 2023'[Sales]),ALLEXCEPT('Date','Date'[Date].[Year]))
 
VaishnaviGandhi_2-1697188055147.png

 

Please help. 

 

thanks 

Vaishnavi Gandhi

 

4 REPLIES 4

Hi @amitchandak 

 

I want to show global sales for each make/brand and the % it hold out of total sales. 

eg., Global sales should be as per the make and brand but Yearly set sales should only show the total of that year in this case for 2017 - 92625606, 2018 - 92488194 and so on like the below piture.

Before adding the date table  - Formula 

Yearly Set sales = CALCULATE(SUM('Master 2017 - 2023'[Sales]),ALLEXCEPT('Master 2017 - 2023','Master 2017 - 2023'[Month].[Year]))

VaishnaviGandhi_1-1697711908446.png

Since I have added a date table for my other analysis, this particluar data is not presention in the above form.
After adding the date table formula

Yearly Set sales = CALCULATE(SUM('Master 2017 - 2023'[Sales]),ALLEXCEPT('Date','Date'[Date].[Year]))

VaishnaviGandhi_3-1697712180043.png

 

What I want ultimately this dasboard is represent is ex - if i have selected asia then how is the 18.66%(2017), 18.87%(2018) etc is  distributed across all the group for all the year, refer the below picture

 

VaishnaviGandhi_4-1697712323543.png

 

Please can you advise on how can I get table 1 outcome where all the sales data is for that year shows as a total and not categorical in this example distributed across region.

 

Thanks

Vaishnavi gandhi 

 

 

 

@VaishnaviGandhi 
I cannot achieve your desired outcome using your sample data provided.

I have augmented your sample data to include the columns and add reasonable amounts of fake data for the illustration.

 

Is the below what you want to achieve as in my attached file?

johnyip_0-1697994994785.png

 

You can achieve this by the following steps.

 

1. Create a measure using the following definition.

 

% Sales = 
VAR TotalSales = CALCULATE(SUM('Table'[Global Sales]),REMOVEFILTERS('Table'[Region]))
RETURN
SUM('Table'[Global Sales])/TotalSales

 

 

 

2. Create the two matrixs right away. Of course you may want to do some formatting to make the matrixs look nice.

johnyip_1-1697995188955.png

 

Please note that I didn't take into consideration your date table in your data model, since I do not have the sample data model provided by your side.

 

And kindly ensure that the sample data your provided should at least include the columns that are needed for the working, or sometimes a solution cannot be given even when you have provided your desired output.

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

Hi @johnyip 

 

PFA, apologies for sharing a data this way, I am unsure why it didn't allow me to attached a file.

CountryRegionGroupMaker/BrandTypeSegmentModelPowerTrainValueMonth
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-01-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-28-02-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-03-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-04-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-05-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-06-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-07-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-08-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-09-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-10-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-11-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-12-2021
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-01-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-28-02-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-03-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-04-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-31-05-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A-30-06-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A1731-07-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A1731-08-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A1830-09-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A1031-10-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A930-11-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A830-12-2022
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A231-01-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A228-02-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A331-03-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A14330-04-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A14531-05-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/A14030-06-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/AN/A31-07-2023
IndiaAsia excl.ChinaTata GroupTataUVs/MPVsUnclassified{Segment} Van2 (Iris/Magic)N/AN/A31-08-2023
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A1931-01-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A828-02-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A931-03-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A330-04-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A1331-05-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A1330-06-2021
ArgentinaROWBMW GroupBMWCarsC1 SeriesN/A1431-07-2021
johnyip
Super User
Super User

Can you share the data model / sample powerbi file? These are needed for the working for DAX.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.