Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Bonjour,
J'ai réussi à stocker dans une colonne les dernières dates du mois précédent :
Et je cherche maintenant à créer une mesure qui me retournerait les valeurs des clôtures à cette date calculée précédemment (28/02/2022).
Quelqu'un a une idée ?
Merci.
Solved! Go to Solution.
Hi, @KimberleyDgs
I simulated some data. You can try the following methods.
Max date =
CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Product]))
Current sales =
CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),[Date]=[Max date]&&[Product]=SELECTEDVALUE('Table'[Product])))
Does this look like the result you were hoping for?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @KimberleyDgs
I simulated some data. You can try the following methods.
Max date =
CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Product]))
Current sales =
CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),[Date]=[Max date]&&[Product]=SELECTEDVALUE('Table'[Product])))
Does this look like the result you were hoping for?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Last Month end date =
var _max = eomonth(_max,-1)
return
CALCULATE(sum('Table'[Qty]), FILTER(ALL('Table'),'Table'[Date] =_max ) )
2nd last month =
var _max1 = if(day(today() )=1 , eomonth(today(),-1), today())
var _max = eomonth(today(),-2)
return
CALCULATE(sum('Table'[Qty]), FILTER(ALL('Table'),'Table'[Date] =_max ) )
In case you have date in slicer , you can use maxx(allselected(Date),Date[Date]) in place of today
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |