Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Looking for any assistance - I have date periods set for a date slicer ie "Last 30 Days"
I have created start of this period, end of this period, start of previous period, end of previous period measures so that I can ensure the report is seeing the dates correctly.
Where my report hits is snag is when I want to do a caluclation on the previous period. IE order count
Current Period gives me a caluation with the below measure:
Any assistance is appreciated!
@apuype wrote:
When I apply the same logic to previous period I get blank
This is because your slicer is selecting the current month and your DATESBETWEEN logic is selecting the prior month and these two filters contradict each other. There are no dates that are in both the current month and the prior month. To fix this you can add the REMOVEFILTERS call to your prior month expression to remove the affect of the slicer.
eg
Thank you, I was very excited to try that but it is still giving me blank for my previous period
I did want to add prior to me creating a set date range for my slicer this logic did work as it was supposed to (ie when using the date slider for custom date selection), the prior period comparions broke when this format was added.
The date table to use this set up was built by the following - my dim date table then joins to this table as well as my data table
Thank you for your feedback! If you can see anything else that maybe it causing this issue please let me know.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
3 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
5 | |
4 | |
3 | |
3 |