The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
29 | |
19 | |
13 | |
8 | |
5 |