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