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 August 31st. Request your voucher.
Dear,
I have the following data table:
CURRENT STATE DATE1 DATE2 DATE3
On-going May 21 Jun 21 Ago 21
Late APR 20 Jun 20
[Blank] APR 20 Jun 20
On-going Jan 21 Feb 21
I would like to have a new column that take the max value between DATE1, DATE2 and DATE3 when CURRENT STATE is not Empty, so:
CURRENT STATE DATE1 DATE2 DATE3 New Value
On-going May 21 Jun 21 Ago 21 Ago 21
Late APR 20 Jun 20 Jun 21
[Blank] APR 20 Jun 20 [Blank]
On-going Jan 21 Feb 21 Feb 21
Thank you!!!!
LD
Solved! Go to Solution.
Something like this;
Max Value = VAR ValueTable = UNION( ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,[Measure1]) ) RETURN MAXX(ValueTable,[Value])
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Something like this;
Max Value = VAR ValueTable = UNION( ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,[Measure1]) ) RETURN MAXX(ValueTable,[Value])
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |