I am trying to filter a table where the previous day is between the BillingPeriodStart and BillingPeriodEnd. I only want one row returned because I will create variables (MIN and MAX) for calculations.
I don’t necessarily have to filter the table, I just need to grab the current Billing Start Date and Billing End Date based on yesterdays date. So if there is a way to do that, it will suffice.
Yes, the inputs are coming from a column in a table… I am thinking of creating calculated date columns so I can call them as variables in a virtual table.
You could also do them as measures and still call them in a virtual table. The key question is whether you’re going to want to use those date columns in a slicer and/or as the axis of a visual? If so, they will have to be calc columns (or added in PQ).
Please let me know if you still need assistance with this. If so, please provide either your PBIX or some sample data, plus a mockup of the results you want to achieve.
I am so far deep in this project and unfortunately did not build the solution with date slicers. I ended up filtering the data tables themselves for current month. So rather than laying a date slicer for different pages of the report, I am having to go back and build the virtual tables differently to get my results now for billing period. Unfortunately, all of my measures are based on the entire month.
I expect what I will have to do is go back and create all new measures filtering for the current billing period That should work.
So, my challenge is to be able to determine and capture the current billing period start and end date so I can build the new measures using those dates.
So can I create a new calculated date column in the table based on the logic you provided without having to lay the filter of 1? That way I can use them in my new measures.