Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Last period Data based on Date/Quarter/Month/Week Filter selection

Hi,    I am new to Power BI. I got one requirement to show data for last 4 quarters data in a table. So if user selects Date/Quarter/Month/Week, I have to show resepctive data. i.e if user selects ...
  • Seward12533's avatar
    Seward12533
    8 years ago

    Its all about filter context, Try creating a lookupdate table with Just YEARMONTHSHORT values

    YEARMONTHS = VALUES(date[YearMonthShort]) 

    Relate that to your data table and set your slice on that.

     

     

    If doesn't work, you could try NOT using a SLICER to select the month but instead use a disconnected slicer to have user select month, date or whatever and then use that SELECTEDVALUE of what the user selectes as teh desired period in your measures.