March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone,
I would like to use the total of a table element of a filtered table in a further DAX calculation.
Example:
I would like to use the total of Number of Invoices (here the number 3385) in another DAX calculation. This calculation would generate the measure Y that stems from the formula Y = X / '3385 Number of Invoices' . What is the correct DAX formula that puts the filtered sum of Number of Invoices into the denominator?
(I have already tried sum(Table1[Number Of Invoices]) but that gives me the total sum of Number of Invoices which - in my case - is something around 9bn. Obviously, this is the sum of Number of Invoices that stems from the total data set (i.e. which has not been filtered according to my specifications).)
Can anyone help, please?
Solved! Go to Solution.
Try this (assuming you don't have other table):
VisualTotal = CALCULATE ( SUM ( Table1[Number Of Invoices] ), ALLSELECTED ( Table1 ) )
Try this (assuming you don't have other table):
VisualTotal = CALCULATE ( SUM ( Table1[Number Of Invoices] ), ALLSELECTED ( Table1 ) )
cool, thank you, learnt another important bit of DAX today 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
16 | |
9 | |
5 |
User | Count |
---|---|
37 | |
29 | |
16 | |
14 | |
12 |