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.
Still learning here...
I have a line graph that shows for the current year and my page will have a month/year filter. Currently, when I choose a month, my graph shows that one dot for the month.
I know I can turn off interactions, but is it possible to make the graph show the line up to the date selected? So if Aug 2022 was chosen, I would see the line up until Aug?
Thx
Solved! Go to Solution.
Hi , @atowriss1
Here are the steps you can refer to :
(1)This is my test data :
(2)We can create a calendar table, we don't need to create relationships between two tables:
Calendar = ADDCOLUMNS(
CALENDAR(FIRSTDATE('Table'[Date]),LASTDATE('Table'[Date])),
"year_month", year([Date]) * 100 + MONTH([Date])
)
(3)We can create a measure :
Value = var _slice = MAX('Calendar'[Date])
var _current= MAX('Table'[Date])
return
IF(_current<= _slice , SUM('Table'[Value]) , BLANK() )
(4)Then we can put the filed we need in the visual and then we can meet your need:
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @atowriss1
Here are the steps you can refer to :
(1)This is my test data :
(2)We can create a calendar table, we don't need to create relationships between two tables:
Calendar = ADDCOLUMNS(
CALENDAR(FIRSTDATE('Table'[Date]),LASTDATE('Table'[Date])),
"year_month", year([Date]) * 100 + MONTH([Date])
)
(3)We can create a measure :
Value = var _slice = MAX('Calendar'[Date])
var _current= MAX('Table'[Date])
return
IF(_current<= _slice , SUM('Table'[Value]) , BLANK() )
(4)Then we can put the filed we need in the visual and then we can meet your need:
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
You could create a disconnected table to use in your slicer, you can copy the appropriate columns from your Date table using SELECTCOLUMNS. You will need the month number column as well as the month name.
You can then either amend your existing measure or write a new one just for this purpose, something like
Filtered measure = CALCULATE( [Existing Measure], 'Date'[Year] = SELECTEDVALUE('Slicer table'[Year]), 'Date'[Month number] <= SELECTEDVALUE( 'Slicer table'[Month number]) )
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 |
---|---|
18 | |
15 | |
11 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |