Forum Discussion

Nimai123's avatar
Nimai123
Post Patron
5 years ago
Solved

Dynamic Measure and Slicer

Hello Guys,   I want to create a dynamic measure which depends on the slicer.   When I select 19-20 my measure will show the data for that year When I select 20-21 my measure will show the...
  • amitchandak's avatar
    amitchandak
    5 years ago

    Nimai123 , for that you can add isfiltered or hasonevalue 

     

    Volume KL Dynamic19-20 =
    var _cnt = countx(filter(allselected('Calendar'[FY],'Calendar'[FY] ="19-20"),'Calendar'[FY])+0
    return
    IF(_cnt >0 && isfiltered ('Calendar'[FY]) ,CALCULATE( SUMX(GRINetSalesDetailsBI,GRINetSalesDetailsBI[NetSales]/1000) ,'Calendar'[FY] = "19-20" ),BLANK())