March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have build a dashboard in power bi desktop and I want the visual highlighted in yellow to be filtered by previous day.
Example if I chose 4th Aug in the slicer it should display sales data for 3rd Aug.
What I have try so far is I have created a Measure
Solved! Go to Solution.
Hi, @pravkan ;
You could try it,
previous day = CALCULATE(SUM([ Sales]),PREVIOUSDAY('financials'[Date]),ALLEXCEPT(financials,financials[Product]))
I create a simple test file. we could find the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @pravkan ;
You could try it,
previous day = CALCULATE(SUM([ Sales]),PREVIOUSDAY('financials'[Date]),ALLEXCEPT(financials,financials[Product]))
I create a simple test file. we could find the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It is best practice to use a Calandar table for all Power BI date logic
see https://www.youtube.com/watch?v=BtYn1hfdSAM
and https://www.youtube.com/watch?v=XjVLaVLluYE
and all the other Calandar training modules ... they are free !
Then your answer will be something like ....
Previous day sales
CALCULATE(
SUM(V_RETAILER_SALES_BY_DISTRICTS[SALES_AMOUNT]),
'CALENDAR'[Dayoffset] = -1)
Thanks for reaching out for help.
I put in a lot of effort to help you, now please quickly help me by giving kudos.
Remeber we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button.
If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime. I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !
User | Count |
---|---|
120 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |