Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
In my original raw data, it starts from 1/1/2019 to 9/15/2021.
I'm wondering whether I can achieve this performance:
If the slicer YearMonth = 2021/07, the bar chart will only show from 2021/01 to 2021/07.
Also if the slicer YearMonth = 2020/07, the bar chart will only show from 2020/01 to 2020/07.
One thing needed to notice is that, I already made a one to many relationship between date table and the fact table with "Date" column. (Because I have other charts in this dashboard).
Thanks for your time.
Yun
Hi YunJ ,
There are two tables.
Fact table and date table, if you have created a relationship between them, then copy the date table without no relationship.
Fact table :
Date table:
1 Create a measure
Measure =
var Selectdate=SELECTEDVALUE('Date table'[Date])
return
CALCULATE(SUM([Value]),
FILTER('Fact Table','Fact Table'[Year/month].[Year]=YEAR(Selectdate)&&'Fact Table'[Year/month]<=Selectdate)
)
2 Create a chart and put field Year/month in the Axis(Under the drop-down menu, leave the date hierarchy unchecked, as shown in the picture.), Measure in the Values.
3 Create slicer with the Date table’s Date column(Similarly, do not select date hierarchy). Now you select a month and the chart will show the values before that month in the current year.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi, may I have a demo?
@YunJ , Are planning to select one period and want to show data more than that. Then you need an independent table
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |