The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have a measure to get the days between two dates and I want the total of this measure to be Sum, but it is giving me a MIN value on the total row of the Table Visual.
I am using DirectQuery.
My measure is like below:
Solved! Go to Solution.
Rename your current measure to be "1_Wdays individual" then create a new measure
1_Wdays = IF( ISINSCOPE('Table'[Position number]), [1_Wdays individual],
var summaryTable = ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[Position number]),
"@value", [1_Wdays individual])
return SUM( summaryTable, [@value])
)
Hi,
I fixed it by creating a New Table instead of another measure and adding DAX: ADDCOLUMNS and SUMMARIZE functions to it.
Thanks, John for your input.
Rename your current measure to be "1_Wdays individual" then create a new measure
1_Wdays = IF( ISINSCOPE('Table'[Position number]), [1_Wdays individual],
var summaryTable = ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[Position number]),
"@value", [1_Wdays individual])
return SUM( summaryTable, [@value])
)
Hi @johnt75 ,
Thank you for your response.
I tried the code as below:
Hi,
I fixed it by creating a New Table instead of another measure and adding DAX: ADDCOLUMNS and SUMMARIZE functions to it.
Thanks, John for your input.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |