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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
majid_75
Helper I
Helper I

Display axe with a table custom

Hello!!

 

I have a issue, help please!!

 

I want to display a custom axis in an X-axis graph.

So I created a table with the different data of my axis, I created a measurement to display my data in the basket but I can’t do it in dax. If someone has an idea...

 

Here’s what I want

 
 
 

 

Image1.png

 

I have a table:

Image2.png

here my measure :

Mesure 2 =
Var x=[Selected KPI]
return
SWITCH(TRUE();
x<0; "<€0"; AND(x>=0; x<100000);
"<€100K"; AND(x>=100000; x<1000000);
"€100K-€1M"; AND(x>=1000000; x<7500000); "€1M-€7.5M"; AND(x>=7500000; x<10000000); "€7.5M-€10M"; ">€10M" )
 
Can you help me pls!
Thanks

 

1 ACCEPTED SOLUTION

hi @majid_75 

For your case, you could refer to this blog:

https://powerpivotpro.com/2015/03/creating-a-histogram-with-a-user-defined-number-of-buckets/

 

If you still have the problem, please share some sample data and your expected output.

 

Regards,

Lin

Community Support Team _ Lin
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

3 REPLIES 3
Pragati11
Super User
Super User

Hi @majid_75 ,

 

You have to convert your measure to a Calculated column in-order to use it on x-axis on the chart.

You can't use a measure on axis with text values.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

I have a table with my bucket (not related).

 

Here, i have this test

Image3.png

i want my NBI  with my bucket "€1M-€7,5M".

 

And then to do with a chart

hi @majid_75 

For your case, you could refer to this blog:

https://powerpivotpro.com/2015/03/creating-a-histogram-with-a-user-defined-number-of-buckets/

 

If you still have the problem, please share some sample data and your expected output.

 

Regards,

Lin

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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