Forum Discussion

KolliNaga's avatar
KolliNaga
Regular Visitor
4 years ago
Solved

one week sales

Hi, 

Could you please let me know how to show only one week dates in x axis bar chart.

 

 

  • Hi KolliNaga ,


    Create a disconnected calendar table as a slicer, and then create a measure to apply to the visual level filter:

    Measure = 
    var select_week = YEAR(SELECTEDVALUE('Date'[Date]))*100+WEEKNUM(SELECTEDVALUE('Date'[Date]))
    var finacials_week = YEAR(SELECTEDVALUE(financials[Date]))*100+WEEKNUM(SELECTEDVALUE(financials[Date]))
    return IF(finacials_week=select_week,1,0)

     


    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies