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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ravichandra0788
Frequent Visitor

Regarding Dynamic Y axis

Hi ,

I have 3 columns
1.start date
2.effort hours
3.duration

i want to display graph using stacked column chart

sample data :
start-date duration                       effort required
18-08-17   0 00:07:31.514773          10
19-08-17   0 00:01:48.569579            9
20-08-17   0 00:06:17.669223            8
21-08-17   0 00:05:18.844028          10
22-08-17   <null>                              9
23-08-17   <null>                              9
23-08-17   <null>                            10
24-08-17   0 00:06:32.708942            6
25-08-17   0 00:06:48.683115            2
26-08-17   0 00:01:00.933775          14
27-08-17   0 00:03:16.847788          10
20-08-17   0 00:06:17.669223           8
21-08-17   0 00:05:18.844028         10
26-08-17   0 00:01:00.933775         14
27-08-17   0 00:03:16.847788         10

requrement:
X-axis: start date
y-axis: should display duration and effort, based on slicer selection if we select duration it should should display start-date on x-axis and duration on yaxis ,if we select effort it should display start-date on x-axis and effort on y-axis.

Please help me

regards
Ravichadnra JL

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @ravichandra0788

To display dynamic Y-axis, you need to modify the dataset by "Unpivot columns".

1.png

2.png

Then add the "Attribute" to the slicer, "value" to the Y-axis, However, the "Value" filed of the stacked column visual should be in number type, but "value" column above is of text type.

 

Best Regards

Maggie

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors