Forum Discussion

MSuser5's avatar
MSuser5
Icon for Helper III rankHelper III
3 years ago

Latest month data not showing

Hi All,

 

Have quick question i have created measure which is showing latest month value (will be May'2023) it's working fine.

But when i add employee name in the table it's showing all the months data.

( it should show latest month values with employee name -  need only may'23 data) if user select slicer month then relevant month should show

 

please suggest: measure

_Latest Month Count = VAR endDate = MAX(table[MonthDate])

RETURN

CALCULATE(sum ( [sales]),table[MonthDate] = endDate)

 

 

8 Replies

  • Hi All,

     

    Kindly help me on this with employer name i need to show latest month values only... When i applied above measure then all the months data appearing please suggest on this.

    • MSuser5's avatar
      MSuser5
      Icon for Helper III rankHelper III

      Hi Ashish,

       

      Please find the sample raw data and expect

      ed result. I want to show latest month (default ) top 3 names.. if user required they can select months in slicer.

      NameSalesMonthDate
      AAA112545301/01/2023
      DDD1811601/02/2023
      BB11537301/01/2023
      AAA11535901/03/2023
      CCC1464701/02/2023
      FFFF1373601/03/2023
      DDD1326201/01/2023
      RRR1278401/03/2023
      RRR1277101/02/2023
      TTT1276101/03/2023
      EEE1253301/01/2023
      AAA11220901/04/2023
      EEE1169701/02/2023
      RRR1158301/04/2023
      TTT1107101/04/2023
      EEE999001/04/2023
      FFFF992501/01/2023
      DDD981001/05/2023
      FFFF971601/05/2023
      TTT793401/05/2023
      YYY772301/05/2023
      EEE744001/05/2023

       

      Expected as default resulrt to be :

       

      Thanks for your support.