Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone and thanks in advance.
I have 3 years-worth of data that is continually being added to on a daily basis. At the end of each month I generate a report comparing that month and all months prior, however, I don't generate the report until a few days into the new month and then the line graphs in the report show data for the new month and I don't want to show any data for the month on this report. I want to be able to filter the entire page to exclude the current month. Does anyone know how to do this?
Thanks in advance!
Solved! Go to Solution.
One way would be to do something like this:
IsCurrentMonth = IF(MONTH([Date]) = MONTH(TODAY()),1,0)
Then just filter the page with IsCurrentMonth set to equal 0 only.
You can filter on calendermonth using relative date: this excludes the current month from the data shown:
The same is possible for years and weeks!
Do you need to setup a measure for Date first? How would you do it? Whenever I use [...] it only shows measures I have setup, it never shows the Date column in my Date table.
One way would be to do something like this:
IsCurrentMonth = IF(MONTH([Date]) = MONTH(TODAY()),1,0)
Then just filter the page with IsCurrentMonth set to equal 0 only.
Thanks smoupre!
Since I have multiple years worth of data, I had to make one small edition so it ended up looking like:
IF(MONTH([Date]) = MONTH(TODAY()) && YEAR([Date]) = YEAR(TODAY()), 1, 0)
But otherwise your formula worked like a charm.
Thanks again.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |