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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
puchrova
New Member

Putting a measure on x axis

Hello, I have to create a chart like the one on in the picture below where on the Y axis I need to see bidPriceAmount and on the X axis the cumulativeBidQtyByPriceAmount. 

 

puchrova_1-1608113990196.png

 

The cumulativeBidQtyByPriceAmount is accumulated bidQty per bidPriceAmount (first is highest bidPriceAmount where the cumulativeBidQtyByPriceAmount is equal as the bidQty).

I managed to create the below. I created the measure for running totals which is working nicely with the slicer for Delivery Day. 

 

puchrova_0-1608113907271.png

The chart created is nice but I need to switch the axis somehow because I need to show the cumulativeBidQtyByPriceAmount in a stepped line chart on the X axis (and the BidPriceAmount on Y axis) which PowerBI won't let me to do because it is a measure. 

Is there perhaps a way to switch the axis or do anything else to get to the intended result as shown in the first picture?

 

Any help is appreciated. Thank you very much

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @puchrova ,

 

Measure cannot be used as x-axis.

DAX measure are based on row context so any given value from slicers, filters, interactions with other visualizations  and so on can influence your result.

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@puchrova , for that you have to use scatter visual or bucket the X-axis measure

 

https://www.daxpatterns.com/dynamic-segmentation/
https://www.daxpatterns.com/static-segmentation/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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