Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lorentz
New Member

Dynamic max value by date based on data slicer grouped by cayegory

Hello everyone,

 

i encounter some difficulties to achieve a particular requirment.

 

the dataset is the following

dataset.JPG

 

the requirement is to obtain the State related to max Date for each Object

dataset_max.JPG

i achieved this using this formula:

 
max_state =
var max_date =CALCULATE (
    MAX ( Foglio1[Date]),
    ALLEXCEPT ( Foglio1,Foglio1[Object])
)
return calculate(values(Foglio1[State]),filter(Foglio1,Foglio1[Date]=max_date))

and now i have two problems:
1)  the formula does not respond to Date slicer, by moving slicer to 19/06/2022, in order to achieve this result:
dataset3.JPG

2) i have a measure, but what i really want is to obtain a dynamic column with caldulated State related on max Date for each Obeject, changing moving data slicer.

I need this in order to use it in a Donut chart obtaining something like this:

 chartmax.JPGchartmax3.JPG

 

I've been stuck on this for days, so will appreciate any kind of help or suggestions, thanks a lot.

 

 



 
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

your date slicers need to be fed by an unconnected table.  I also recommend you rethink the "between" setting. A status is a momentary thing. The status for 1a on 19/06/2022 was Modified, not closed.

 

lbendlin_0-1677374698734.png

see attached

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

your date slicers need to be fed by an unconnected table.  I also recommend you rethink the "between" setting. A status is a momentary thing. The status for 1a on 19/06/2022 was Modified, not closed.

 

lbendlin_0-1677374698734.png

see attached

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.