Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am tyring to calculate montly percentages from a ledger using a date table.
My data looks something like this
So Jan's % = 100, Feb % = 100, Mar % = 100
I can't get it to work in DAX. I've tried
% total = DIVIDE( SUM(Append1[Amount]), CALCULATE( SUM(Append1[Amount]), ALL(Append1[Buying Channel]) ) )
I'm trying to get DAX to ignore the Buying channel context and just use the date context.
Any ideas? Is it messing up because of the date table?
Solved! Go to Solution.
Hi @adgarza,
You can create a measure below:
Measure = CALCULATE(SUM('fact'[Amount]),FILTER(ALL('date'),'date'[Year]=MAX('date'[Year])))
Best Regards,
Qiuyun Yu
I believe the first step is to create a measure that is a sum by month. This can be checked by adding into the visual.
MonthSum =
CALCULATE (
SUM ( 'Table'[Amount] ),
ALLEXCEPT ( 'Table', 'Table'[Month] )
)
If i put it in a table i want it to look like this.
Year is from a date table, buying channel and amount are from a fact table, and total is the new measure. Notice it stays the same for each year.
Year Buying Channel Amount Total 2000 PO 1 6 2000 NONPO 2 6 2001 PCARD 3 6 2001 PO 4 15 2001 NONPO 5 15 2001 PCARD 6 15 2002 PO 1 6 2002 NONPO 2 6 2002 PCARD 3 6
Hi @adgarza,
You can create a measure below:
Measure = CALCULATE(SUM('fact'[Amount]),FILTER(ALL('date'),'date'[Year]=MAX('date'[Year])))
Best Regards,
Qiuyun Yu
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 66 | |
| 41 | |
| 39 | |
| 39 | |
| 38 |