Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I have 2 linked tables which are Date(month column) and Transaction(sales_amount column) tables.
How can I achieve to calculate and display Sales and Total Sales in same table as Sales column will be filtered by Month while Total Sales would be Sum of all months Sales in that year. And later, I can calculate the % of Sales amount of the month over the year.
Month | Sales | Total Sales | % of Sales | |
2022 | Jan | 20,000 | 85,000 | 23.53% |
Feb | 30,000 | 85,000 | 35.29% | |
Mar | 20,000 | 85,000 | 23.53% | |
Apr | 15,000 | 85,000 | 17.65% | |
… | ||||
Total | 85,000 | 100% |
Solved! Go to Solution.
You can sum up sales for all months like this:
Sum of all months Sales = CALCULATE(SUM('Table'[Sales]),REMOVEFILTERS('Calendar'),VALUES('Calendar'[year]))
You can sum up sales for all months like this:
Sum of all months Sales = CALCULATE(SUM('Table'[Sales]),REMOVEFILTERS('Calendar'),VALUES('Calendar'[year]))
Short and simple, thanks for your solution!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
87 | |
78 | |
62 | |
61 | |
60 |
User | Count |
---|---|
160 | |
114 | |
100 | |
74 | |
65 |