can you correct my dax please? - anna cal min max label = var min = CALCULATE(MIN('Chart…
- User
can you correct my dax please? - anna cal min max label = var _min = CALCULATE(MIN('Chart of Accounts'[INC CLASSIFICATION], [Reccuring Revenues]), ALL('1 Dates') ) var _max = CALCULATE(MAX('Chart of Accounts'[INC CLASSIFICATION], [Reccuring Revenues]), ALL('1 Dates') ) return FORMAT(_min, "#0,0") & " | " & FORMAT(_max, "#0,0.0" ) & " " & UNICHAR(9650)
- Assistant
Sure! Here's the corrected DAX expression:
var _min = CALCULATE(MIN('Chart of Accounts'[INC CLASSIFICATION]), ALL('1 Dates') ) var _max = CALCULATE(MAX('Chart of Accounts'[INC CLASSIFICATION]), ALL('1 Dates') ) return FORMAT(_min, "#,##0") & " | " & FORMAT(_max, "#,##0.0" ) & " " & UNICHAR(9650)
I removed the [Reccuring Revenues] measure from the MIN and MAX functions since it wasn't necessary in this case. Also, I adjusted the FORMAT function to include commas in the thousands separator.