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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ravichandra0788
Frequent Visitor

display value as it is on y-axis of stacked column chart

Hi ,

 

I am trying to display values as it is on Y-axis but while displaying either it is summing up or applying aggregate fuctions. 

 

could you please help me how can i display values as it is on y-axis.

 

eg:

date           | product  | price

10-2-18     |P01          | 10

11-2-18     |P01          |20

 

now i am using stacked column chart for displaying , X-axis date,Y-axis price .i.e basically i want to see product price day by day. but it is displaying sum of product for each day.

 

Could you please help me.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ravichandra0788,

 

Unfortunately, power bi not support handling date/time value on y axis, you also can't apply summarize functions on data/time value.

 

Please convert your duration value to total second to calculate. After transform duration value, you can write a formula to calculate running total.

Rolling duration per employee =
VAR currDate =
    MAX ( Table[Start time] )
RETURN
    CALCULATE (
        SUM ( Table[Duration] ),
        FILTER ( ALLSELECTED ( Table ), [Start time] <= currDate ),
        VALUES ( Table[Name] )
    )

 

Extract date part from datetime, create stacked column chart with date to axis, employee to legend, measure to value.

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ravichandra0788,


Drag date to axis, product to legend, price to value, then go to format tab and modify x-axis type to categorical.

35.gif

 

 

Regards,

Xiaoxin Sheng

Hi Xiaoxin Sheng,

Thanks a lot for quick reply, actually solution what you have suggested is not working, here i have attached sample data and graph as well what i have developed. Please help me

explanation of graph what i have developed.

First i have used 'Cheiclet slicer ' for department
based on department selection it should populate employee details in 'table' chart

next if i click on employee name then it should display only those employee related start-date and duration of that employee on 'stacked column chart'.

i need help in populating these values in 'stacked column chart'

my requirement is :
X-axis should have start date
Y-axis should display duration of employee for past days (employee will be selected from second graph i.e, 'table chart',based on that 'stacked column chart' should display values) so this we can analyse how the employee is spent time on each daygraph.JPG

 

dataset.JPG

Regards 

Ravichandra JL

Anonymous
Not applicable

Hi @ravichandra0788,

 

Unfortunately, power bi not support handling date/time value on y axis, you also can't apply summarize functions on data/time value.

 

Please convert your duration value to total second to calculate. After transform duration value, you can write a formula to calculate running total.

Rolling duration per employee =
VAR currDate =
    MAX ( Table[Start time] )
RETURN
    CALCULATE (
        SUM ( Table[Duration] ),
        FILTER ( ALLSELECTED ( Table ), [Start time] <= currDate ),
        VALUES ( Table[Name] )
    )

 

Extract date part from datetime, create stacked column chart with date to axis, employee to legend, measure to value.

 

Regards,

Xiaoxin Sheng

Thanks a lot Xiaoxin Sheng 🙂 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors