Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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' )
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |