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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sowmiya
Helper III
Helper III

DAX

Hi Community,
Help me with the DAX. 
This is my raw data in single table.
1.1.png

X-Axis vs Y-Axis is the required Bar Chart. Have given you what is X-Axis and What is in Y-Axis. This can be Done with DAX.

1.2.png


Date Slicer is Dynamic. When we change the date in filter, X-Axis and Y-Axis must change According. For sample, I have sliced date 2 times and Showed the Change in X-Axis and in Y-Axis.

Appreciating any response.
Thanks in Advance.
Ambhika

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

Hi @Sowmiya ,

 

As we can only add columns onto chart X-axis, columns are static, which cannot be calculated conditionally based on slicer selection. For above output, it is not achievable now.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Sowmiya ,

 

As we can only add columns onto chart X-axis, columns are static, which cannot be calculated conditionally based on slicer selection. For above output, it is not achievable now.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.