Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
Please review below table, called "Requests".
I need to calculate, for each individual row in the table, the largest value / newest date of the columns [Creation date], [Start date], [Delivery date] and [Verification date].
Normally, in PBI, I would create a calculated column "MaxDate" with the following formula:
MaxDate = VAR temp={[Creation date],[Start date],[Delivery date],[Verification date]} RETURN MAXX(temp,[Value])
This formula, when used in PBI, would give me the following outcome:
However, because of my clients tooling constraints, I have to work with Power Pivot in Excel 2013. The above formula will not work in this tool.
I've searched for and tried different options, but can't seem to get it working.
Can you help me?
Many thanks in advance!
Erwin
Hi @Erwin
You might be able to use the ROW and UNION function in Excel 2013 to achieve the same result
= VAR temp = UNION ( ROW ( "Dates", [Creation date] ), ROW ( "Dates", [Start date] ), ROW ( "Dates", [Delivery date] ), ROW ( "Dates", [Verification date] ) ) RETURN MAXX ( temp, [Dates] )
Hi Zubair,
Unfortunately the UNION function is also not accepted by Excel 2013.
This is the type of solution I'm thinking about:
MAXX( <SomeTable, dynamically created to contain four dates per row>, [SomeTable] )
Do you have any other ideas?
Erwin
Can you use GENERATESERIES in Excel 2013?
The old fashioned way should work
= MAX ( MAX ( MAX ( [Creation date], [Start date] ), [Delivery date] ), [Verification date] )
Max takes only 2 arguments. So we have to nest them
Hi Zubair,
Still doesn't work. In your example you are still putting four dates in one MAX function, which is not allowed.
I'm trying to calculate over a dynamic table using MAXX and ROW, but I can't seem to work what the expression should be (argument 2 of MAXX).
=MAXX( ROW( "Create",MAXX(VALUES(Requests[Request]),Requests[Creation date]), "Start",MAXX(VALUES(Requests[Request]),Requests[Start date]), "Deliver",MAXX(VALUES(Requests[Request]),Requests[Delivery date]), "Verify",MAXX(VALUES(Requests[Request]),Requests[Verification date]) ), <What goes here???> )
Nope, just GENERATE and GENERATEALL
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
105 | |
98 | |
38 | |
37 |
User | Count |
---|---|
152 | |
125 | |
75 | |
74 | |
63 |