Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |