Forum Discussion
Plot line graph without showing last month value
- 2 years ago
Ptolemaida , Try using below method
Create a DAX Measure to Identify the Current Month:
CurrentMonth = MONTH(TODAY())
Create a DAX Measure for Sales Data Excluding Current Month for Current Year:
SalesExcludingCurrentMonth =
IF(
YEAR([Date]) = YEAR(TODAY()) && MONTH([Date]) = MONTH(TODAY()),
BLANK(),
[Sales]
)
Use the New Measure in Your Line Graph:Replace the original sales measure with SalesExcludingCurrentMonth in your line graph.
Ensure the Legend and Axis are Correct:Make sure the Year is in the legend and the Date (or Month) is on the axis.
Ptolemaida , Try using below method
Create a DAX Measure to Identify the Current Month:
CurrentMonth = MONTH(TODAY())
Create a DAX Measure for Sales Data Excluding Current Month for Current Year:
SalesExcludingCurrentMonth =
IF(
YEAR([Date]) = YEAR(TODAY()) && MONTH([Date]) = MONTH(TODAY()),
BLANK(),
[Sales]
)
Use the New Measure in Your Line Graph:
Replace the original sales measure with SalesExcludingCurrentMonth in your line graph.
Ensure the Legend and Axis are Correct:
Make sure the Year is in the legend and the Date (or Month) is on the axis.