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
Franco_RV
Frequent Visitor

Mostrar datos solo si hay valor filtros

Comunidad,

 

Quisiera saber si es posible mostrar datos unicamente cuando se seleccionen filtreos. Tengo  un gráfico de Tendencias en el cual deseo que las lineas de tendencias parezcan solo si hay valores seleccionados en filtros, por defecto Power bi establece los filtros en selección como "todos".Deseo saber si es posible establecer esto como "blanco" o "ninguno" para posteriormente aparezcan las lineas de tendencia en base a los datos seleccionados.

 

Agradezco cualquier información al respecto 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Franco_RV ,

I have created a sample table like this:

sample.png

Create this measure:

Measure =
IF (
    CALCULATE ( ISFILTERED ( 'Table'[group] ), ALLSELECTED ( 'Table'[group] ) ),
    SELECTEDVALUE ( 'Table'[value] ),
    BLANK ()
)

Put this measure in the line chart visual and set group as a slicer:

default statusdefault statusafter choosing slicersafter choosing slicers

 

Sample file is attached that hopes to help you, please check and try it: Show data only if there are filters value.pbix 

 

Best Regards,
Yingjie Li

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

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @Franco_RV ,

I have created a sample table like this:

sample.png

Create this measure:

Measure =
IF (
    CALCULATE ( ISFILTERED ( 'Table'[group] ), ALLSELECTED ( 'Table'[group] ) ),
    SELECTEDVALUE ( 'Table'[value] ),
    BLANK ()
)

Put this measure in the line chart visual and set group as a slicer:

default statusdefault statusafter choosing slicersafter choosing slicers

 

Sample file is attached that hopes to help you, please check and try it: Show data only if there are filters value.pbix 

 

Best Regards,
Yingjie Li

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

 

Thank's!!!!!! it work's!!!!!!

amitchandak
Super User
Super User
alecabanchik
Frequent Visitor

Hello

Power BI naturally loads data into all visuals, doesn't contemplate execution after selecting a filter or slicer or similar.

Defining measures with conditionals to know if there are selected values is not a solution that I advise, because one ends up dirtying business measures by a visual effect.

one option would be to put a "dummy" value in the slicers and save the report with that selected value, but I would test its operation, personally I do not like the result very much...

but once published if you allow the report's consumers to save "filters", they could save them to a certain value, and skip the searched effect.

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.