Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I need to get a calculation to get the sum of total auths by month. Should I do this in the transformations or in the Reporting functionality via Dax Formula?
Solved! Go to Solution.
Hi @Anonymous ,
You can create a calculated column or measure to get it using below formulas:
Calculated column:
Auth Fees By Month =
SUMX (
FILTER (
'Monthly Billing Archive',
'Monthly Billing Archive'[Billing / Revenue Recognition Term]
= EARLIER ( 'Monthly Billing Archive'[Billing / Revenue Recognition Term] )
),
'Monthly Billing Archive'[Auth Fees]
)
Or
Measure:
Auth Fees By Month =
SUMX (
FILTER (
ALLSELECTED ( 'Monthly Billing Archive' ),
'Monthly Billing Archive'[Billing / Revenue Recognition Term]
= SELECTEDVALUE ( 'Monthly Billing Archive'[Billing / Revenue Recognition Term] )
),
'Monthly Billing Archive'[Auth Fees]
)
Best Regards
hi, @Anonymous
you can do it in DAX
Thanks Dangar332, Can you give an example?
Hi, @Anonymous
Try below measure
Measure =
Sumx (
Filter ( tablename, tablename[month column]=earlier(tablename[month column])),
Sum(tablename[authscolumn]))
This was very helpful, but having an error. Can you tell what I am doing wrong? The "earlier" function does not seem to want to accept the same table name as the sum/filter function.
Hi @Anonymous ,
You can create a calculated column or measure to get it using below formulas:
Calculated column:
Auth Fees By Month =
SUMX (
FILTER (
'Monthly Billing Archive',
'Monthly Billing Archive'[Billing / Revenue Recognition Term]
= EARLIER ( 'Monthly Billing Archive'[Billing / Revenue Recognition Term] )
),
'Monthly Billing Archive'[Auth Fees]
)
Or
Measure:
Auth Fees By Month =
SUMX (
FILTER (
ALLSELECTED ( 'Monthly Billing Archive' ),
'Monthly Billing Archive'[Billing / Revenue Recognition Term]
= SELECTEDVALUE ( 'Monthly Billing Archive'[Billing / Revenue Recognition Term] )
),
'Monthly Billing Archive'[Auth Fees]
)
Best Regards
Hi, @Anonymous
Sumx (
Filter ( tablename, tablename[month column]=max(tablename[month column])),
Sum(tablename[authscolumn]))
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |