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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Clustered Column Chart Help

 

 

How do I get the column chart to show the Same period last year values? It currently only shows the value from the selected date range. 

 

I want it to have the ability to be filtered by the date, but also show the compared count from the samePeriodlastYear.

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

I'm not very clear about your table structure and visuals used. I'd like to give a simple sample and you can adjust the DAX formula according to your tables and columns.

 

Please refer to the attached PBIX file, there are three columns (Date, Sales, Store) in Table1 and I create a Calendar table to make relationship between them. In such way, we can show the values for selected period. With following measure, we can show the same period last year values.

 

LY = 
CALCULATE (
    SUM ( Table1[Sales] ),
    SAMEPERIODLASTYEAR ( 'Calendar'[Date] ),
    VALUES ( Table1[Store] )
)

Clustered Column Chart Help_1.jpg

 

Best Regards,
Herbert

View solution in original post

3 REPLIES 3
v-haibl-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Please let me know if you still have problem on it.

 

Best Regards,
Herbert

v-haibl-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Does above solution help?

 

Best Regards,
Herbert

v-haibl-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

I'm not very clear about your table structure and visuals used. I'd like to give a simple sample and you can adjust the DAX formula according to your tables and columns.

 

Please refer to the attached PBIX file, there are three columns (Date, Sales, Store) in Table1 and I create a Calendar table to make relationship between them. In such way, we can show the values for selected period. With following measure, we can show the same period last year values.

 

LY = 
CALCULATE (
    SUM ( Table1[Sales] ),
    SAMEPERIODLASTYEAR ( 'Calendar'[Date] ),
    VALUES ( Table1[Store] )
)

Clustered Column Chart Help_1.jpg

 

Best Regards,
Herbert

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.

Users online (2,133)