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

Slicer para cambiar los datos utilizados en todas las tablas y gráficos

Tengo una tabla con varias columnas donde hay valores "Raw" o "Cleaned". Estos representarán la misma ubicación en cada visualización, pero le gustaría seleccionar entre los dos con una segmentación de datos. Al seleccionar la opción de segmentación de datos "Raw" o "Cleaned", los gráficos de tablas conectados se ajustarán en función de las columnas relacionadas. A continuación se muestra un ejemplo de tabla.

PBI example 5.JPG

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@flyingmada- Tendrá que hacer el cambio en su medida o puede despocupar las columnas. Por lo general, no se recomienda el segundo enfoque para las medidas despívoras. En una medida es algo así como:

Measure =
  VAR __Selection = MAX('Slicer'[Column])
RETURN
  SWITCH(__Selection,
    "Raw",SUM('Table'[Raw]),
    "Clean",SUM('Table'[Clean])
  )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@flyingmada

Un método alternativo es usar marcadores con botones. (Puede conservar los valores de segmentación de datos)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Greg_Deckler
Super User
Super User

@flyingmada- Tendrá que hacer el cambio en su medida o puede despocupar las columnas. Por lo general, no se recomienda el segundo enfoque para las medidas despívoras. En una medida es algo así como:

Measure =
  VAR __Selection = MAX('Slicer'[Column])
RETURN
  SWITCH(__Selection,
    "Raw",SUM('Table'[Raw]),
    "Clean",SUM('Table'[Clean])
  )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

What does the 

('Slicer'[Column])

 in your forumula represent?

 

Am i referencing the slicer? If so, how do I do this?

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.

Top Solution Authors
Top Kudoed Authors