Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Velvetine27
Helper I
Helper I

Visual displaying all data ignoring date filter

Hi,


Im looking for a way to visualize sales data which ignores a certain date filter. I have two date filters that need to be implemented, year and month. What I'd like to have is for example user is selecting Year = 2022 and Month = Aug, the measure will be displaying the sales data from Jan 2022 till Aug 2022. 


Appreciate your help in this matter. Thanks !

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Velvetine27 

i propose three steps:

1) try to add a column with this:

YYMM = YEAR([Date])&FORMAT(MONTH([Date]),"00")
2) try to add a measure with this:
RunningTotal =
VAR _value = SELECTEDVALUE(TableName[YYMM])
RETURN
CALCULATE(
    SUM(TableName[Value]),
    TableName[YYMM]<=_value && LEFT(_value,4) =  LEFT(TableName[YYMM],4)
)
3) then create the slicer with YYMM column and Card Visual with the measure,
 
I tried and it worked like this:
FreemanZ_0-1670575971347.png

 

FreemanZ_1-1670575996786.png

 

Hey,

 

Sorry I wasn't being clear, I actually want to display data for each month up till that selected date. With this measure that you provided, it seems to be displaying for that selected month only. Any solution for this ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.