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.
I have a Datasaet that has daily sales data with category.
The Datatable sample
Date | Category | Sales Value
01-APR-24 | G1 | 100
01-APR-24 | G1 | 120
01-APR-24 | G2 | 150
01-APR-24 | G3 | 250
02-APR-24 | G1 | 120
02-APR-24 | G2 | 130
02-APR-24 | G3 | 150
The line graph should show daily percentage of sales by each category
Example
Date | Category | Sales Value
01-APR-24 | G1 | (220/620)
01-APR-24 | G2 | (150/620)
01-APR-24 | G3 | (250/620)
How should I design my DAX for this?
Solved! Go to Solution.
% Of Total Sales =
DIVIDE (
SUM ( 'Table'[Sales Value] ),
CALCULATE (
SUM ( 'Table'[Sales Value] ),
REMOVEFILTERS ( 'Table' )
)
)
% Of Total Sales =
DIVIDE (
SUM ( 'Table'[Sales Value] ),
CALCULATE (
SUM ( 'Table'[Sales Value] ),
REMOVEFILTERS ( 'Table' )
)
)
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 |
---|---|
69 | |
35 | |
21 | |
18 | |
15 |
User | Count |
---|---|
127 | |
32 | |
27 | |
24 | |
22 |