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
majid_75
Helper I
Helper I

Mostrar hacha con una tabla personalizada

¡¡Hola!!

Tengo un problema, ayuda por favor!!

Quiero mostrar un eje personalizado en un gráfico del eje X.

Así que creé una tabla con los diferentes datos de mi eje, creé una medida para mostrar mis datos en la cesta, pero no puedo hacerlo en dax. Si alguien tiene una idea...

Esto es lo que quiero

Image1.png

Tengo una mesa:

Image2.png

aquí mi medida :

Medida 2
Var x-[KPI seleccionado]
devolución
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,5 millones de euros a 10 millones"; ">10M" )
¿Puedes ayudarme, pls!
Gracias

1 ACCEPTED SOLUTION

hola @majid_75

Para su caso, puede consultar este blog:

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

Si todavía tiene el problema, comparta algunos datos de muestra y su salida esperada.

saludos

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

Hola @majid_75 ,

Debe convertir la medida en una columna calculada en orden para usarla en el eje X del gráfico.

No se puede utilizar una medida en el eje con valores de texto.

Gracias

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

Tengo una mesa con mi cubo (no relacionado).

Aquí, tengo esta prueba

Image3.png

Quiero mi NBI con mi cubo "1M-7,5M".

Y luego hacer con un gráfico

hola @majid_75

Para su caso, puede consultar este blog:

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

Si todavía tiene el problema, comparta algunos datos de muestra y su salida esperada.

saludos

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
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.