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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mchercol
Helper I
Helper I

Generar grafico con parametros de campo

Hola buenos dias.

Me surge un  problematica que no se muy bien si se puede resolver.

 

Tengo creados los siguientes parametros de campo:

mchercol_0-1725621869320.png

Donde se comparan en una misma grafica valores .

 

Podia crear una gráfica donde este compuesta por los parametros de campo que tengo ya creados y que se pueda mostrar una mediante el slicer creado con esos parametros de campo un grafico u otro en funcion del slicer seleccionado?

 

Gracias por adelantado

 

1 ACCEPTED SOLUTION
v-mengmli-msft
Community Support
Community Support

Hi @mchercol ,

 

Thanks for @dk_dk reply, it is a great way!

 

@mchercol According to your description, do you want to display data from two tables using one visual? As far as I know, PowerBI does not support dynamically changing fields in visual. I suggest that you can merge the two tables into one table, like this.

CustomTable  = UNION(SELECTCOLUMNS(Table1,"NewColumnName1",Table1[Column1],"NewColumnName2",Table1[Column2]),SELECTCOLUMNS(Table2,"NewColumnName1",Table2[Column3],"NewColumnName2",Table2[Column4]))

The results in my test.

vmengmlimsft_0-1727258399274.png

vmengmlimsft_1-1727258436994.png

 

 

Best regards,

Mengmeng Li

View solution in original post

3 REPLIES 3
v-mengmli-msft
Community Support
Community Support

Hi @mchercol ,

 

Thanks for @dk_dk reply, it is a great way!

 

@mchercol According to your description, do you want to display data from two tables using one visual? As far as I know, PowerBI does not support dynamically changing fields in visual. I suggest that you can merge the two tables into one table, like this.

CustomTable  = UNION(SELECTCOLUMNS(Table1,"NewColumnName1",Table1[Column1],"NewColumnName2",Table1[Column2]),SELECTCOLUMNS(Table2,"NewColumnName1",Table2[Column3],"NewColumnName2",Table2[Column4]))

The results in my test.

vmengmlimsft_0-1727258399274.png

vmengmlimsft_1-1727258436994.png

 

 

Best regards,

Mengmeng Li

dk_dk
Super User
Super User

Hi @mchercol 

Sorry I am answering in English because my Spanish is no bueno. Hope you understand or the translation is clear enough.

I think it is easier to achieve what you want with buttons and bookmarks.

You can set up your page so your two charts are overlapping eachother.

dk_dk_0-1725626959137.png

You can go to View > Selection  and hide one of the charts. Then go to View > Bookmarks and set a bookmark.
Then hide the visible chart and unhide the hidden one, and set another bookmark.

Then you can add two buttons ("view Peso_Ton chart" and "View Solicitudes chart") and set the action to Bookmark. Clicking the the buttons would toggle which of the two charts are visible. You might want to configure that the relevant slicers also appear/disappear together with the chart.

I hope this helps. You can read more about bookmarks in Spanish here:  https://learn.microsoft.com/es-es/power-bi/create-reports/desktop-bookmarks?tabs=powerbi-desktop








Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Habia pensado en esa solucion, pero querri hacer con parametro, ya que me parece que queda mas limpio

 

Gracias

 

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.