Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Good morning.
I would like to generate some DAX that allows me to identify the minimum date within the "Accountingdate" field as long as the voucher is V and the Internal Number is the same. In the example:
For the internal number C-ME-00000091 the minimum accounting date within the V vouchers is 02/06/2021 (red in image)
For the internal number C-ME-00000117 the minimum countable date within the vouchers V is 02/06/2021 (blue in image)
I hope it is understood and whoever has any solution, can help me.
Thank you very much.
Solved! Go to Solution.
Hi again.
Sorry you're right.
try this measure:
Fecha min =
var _numero = SELECTEDVALUE('Table'[Numero interno])
var _value =
CALCULATE(
MIN('Table'[Fechacontable]),
filter(all('Table'),'Table'[Numero interno]=_numero && 'Table'[comprobante] = "V")
)
return
_value
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
Excellent! It worked, thank you so much for your help!
Hello
Try this measure:
Fecha Min =
CALCULATE(
min('Table'[Fechacontable]),
GROUPBY('Table','Table'[Numero interno],'Table'[Comprobante]),
'Table'[Comprobante]="V"
)
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
It's a great approximation, but I was looking for this:
That each record contains the date min. With the measure introduced, it gives me the same date as the Accounting date. To the right of the Date min column, I placed what I'm looking to get to.
Best regards.
Hi again.
Sorry you're right.
try this measure:
Fecha min =
var _numero = SELECTEDVALUE('Table'[Numero interno])
var _value =
CALCULATE(
MIN('Table'[Fechacontable]),
filter(all('Table'),'Table'[Numero interno]=_numero && 'Table'[comprobante] = "V")
)
return
_value
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
Excellent! It worked, thank you so much for your help!
Hello
Please accept my solution and and give me kudos if possible.
thanks
Bruno
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
Hello Bruno!
I believe that the solution has already been accepted. I'm new to the platform.
And congratulations are given from where?
Best regards.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |