Forum Discussion

Patricio479's avatar
Patricio479
Frequent Visitor
3 years ago
Solved

Select an specific value from a filtered table

Hello, dear PBI experts.   I have a table that contains data related to "Division", "Date" and "Number". I have created two slicers to filter by Division and Date. After these filters are applied I...
  • sergej_og's avatar
    3 years ago

    Hey Patricio479 ,
    if this is your target result:

    you can try to apply this formula into your model. Should work for your described purpose.

    MAX Value = 
        CALCULATE(
            MAX(yout_table[Number]),
            'Calendar'[Date] = MAX(your_table[Date])
            )


    Regards

  • parry2k's avatar
    3 years ago

    Patricio479 Ok, let's test it, if it doesn't work then I will recreate dataset on my end to test it:

     

    Measure = 
    CALCULATE (
        MAX ( Table[Number] ),
        INDEX (
            1, 
            SUMMARIZE ( ALLSELECTED ( Table ), Table[Date], Table[Division] ),
            ORDERBY ( Table[Date], DESC ),
            PARTITIONBY ( Table[Division] )
        )
    )