Forum Discussion
Return MAX value into column
- 2 years ago
Download PBIX file with the example below
This works for me
MAX Downtime Per Incident = VAR _MaxDT = CALCULATE(MAX('DataTable'[Downtime]), FILTER(ALL('DataTable'), SELECTEDVALUE('DataTable'[Issue ID]) = 'DataTable'[Parent ID])) RETURN IF(SELECTEDVALUE('DataTable'[Issue Type]) = "Incident", _MaxDT)In the table visual make sure that Issue ID is set to Show items with no data
Regards
Phil
Download PBIX file with the example below
This works for me
MAX Downtime Per Incident =
VAR _MaxDT = CALCULATE(MAX('DataTable'[Downtime]), FILTER(ALL('DataTable'), SELECTEDVALUE('DataTable'[Issue ID]) = 'DataTable'[Parent ID]))
RETURN IF(SELECTEDVALUE('DataTable'[Issue Type]) = "Incident", _MaxDT)
In the table visual make sure that Issue ID is set to Show items with no data
Regards
Phil
Thanks for coming back to me Phil. Unfortunately I'm just getting blank in every row.
This is the updated query I used:
- PhilipTreacy2 years agoSuper User
Can you please supply your actual data, or even better your PBIX file, so I can look at it and write the DAX to work with that.
Regards
Phil
- dwightman21762 years agoFrequent Visitor
Hi PhilipTreacy . How do I attach a PBIX file as I get an error saying I cannot attach that file type (same with Excel)
Thanks
David- PhilipTreacy2 years agoSuper User
Prob easiest to load the file to somewhere like OneDrive or Google Drive and then link to it from here.
Phil