Forum Discussion
jayjay0306
Helper III
6 years agoPower BI filter - Latest forecast version
Hi people, I am in a bit of a puzzle here and hope you guys can help: I have the following table showing our forecast version: Our forecast process works in the following way: On the first ...
- 6 years ago
Hi jayjay0306 ,
You could share your expected result here with image or table.
And you could try the following DAX:
Table 2 = SUMMARIZE ( 'Forecast', 'Forecast'[SOP Version], "LAG (lowest value)", CALCULATE ( SELECTEDVALUE ( Forecast[LAG] ), FILTER ( Forecast, RIGHT ( Forecast[LAG], 1 ) = MINX ( Forecast, RIGHT ( Forecast[LAG], 1 ) ) ) ) )
amitchandak
Super User
6 years agojayjay0306 , can we create a desc Rank on version and use Rank =1 to filter
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415