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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
archerjayden
Helper I
Helper I

Line Chart Display Selected Month and from First Month of Year

Hi,

I have actuals in a fact table that is connected to date table. The fact table is at Month and Year so I had created new column at power query to generate start of month date column from existing year and month columnsโ€ฆ Joined fact with date on dates. Now I am trying to plot my actuals on Line Chart

Scenario : I would like to select a Year Month on Slicer and want to show/display Line Chart from start of year till that Selected Year Month.
The below doesnt seem to work

 

VAR SelectedYear =
SELECTEDVALUE ( dim_date[FiscalPeriod] )
VAR Result =
CALCULATE ( sum(vw_fct_inventory[actual])/1000000, dim_date[FiscalPeriod] <= SelectedYear )
RETURN
Result

How to achieve this please help

https://www.dropbox.com/s/qothervri3qyomu/Sample.pbix?dl=0 

Thanks
Archer

1 REPLY 1
amitchandak
Super User
Super User

@archerjayden , if you select fewer dates and what to show more dates. You need to use an independent table.

 

Refer to this video

https://www.youtube.com/watch?v=duMSovyosXE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)