Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi There,
I have 3 pages where each of the pages should show only the specific values for "this month", "next month", "+2 month".
Example for this month:
Page 1: Shows only values for May 2022 ("this month")
Page 2: Shows only values for June 2022 ("next month")
Page 3: Shows only values for July 202 ("+2 month")
I have managed the first two pages with the relative date filter.
I have a problem with the third page, because if I make it with a relative filter, it includes the values for June AND July, as below and I only want to see July.
Below is an example of the cards I am using to show this data.
Below are the related fields for baselines that I am using to attempt to get this data, both on the "DBeaver Connection" table.
Baseline #'s = MS110 Baseline #'s (whole number field)
Dates = MS110 (B) (date field)
Any help would be appreciated!
Solved! Go to Solution.
Hi @Anonymous,
You may try this solution.
1 Create a Measure
DateIn+2Month =
VAR CurrentMon =
MONTH ( TODAY () )
VAR ExpectedMon = CurrentMon + 2
RETURN
CALCULATE (
COUNT ( 'Table'[MS110(B)] ),
FILTER ( 'Table', MONTH ( 'Table'[MS110(B)] ) = ExpectedMon )
)
2 Use this Measure as a visual filter, then only data for July will be displayed in the visual
Also, attach the sample pbix as reference.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @Anonymous,
You may try this solution.
1 Create a Measure
DateIn+2Month =
VAR CurrentMon =
MONTH ( TODAY () )
VAR ExpectedMon = CurrentMon + 2
RETURN
CALCULATE (
COUNT ( 'Table'[MS110(B)] ),
FILTER ( 'Table', MONTH ( 'Table'[MS110(B)] ) = ExpectedMon )
)
2 Use this Measure as a visual filter, then only data for July will be displayed in the visual
Also, attach the sample pbix as reference.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
There is gonna be an issue to this. What if current month is November 2023, the future 2nd month should be January 2024 right?
what should we do to involve the Year in the calculation? Thanks!
Hey,
Thanks for your response. That didn't seem to work in the format that I'm using though, could you explain further?
My baseline # field isn't currently a calculated measure, its just a count of the items in the column.
Thanks,
Siobhan
@Anonymous , Add an additional filter to your measure
measure 1 =
var _max = Eomonth(maxx(allselected('Date'), 'Date'[Date] ),0)
return
calculate([Measure], filter('Date', eomonth('Date'[Date] ,0) = _max) )
All measure two follow above, of use one measure like that as visual level filter and check for non blank
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
53 | |
46 | |
15 | |
12 |