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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RubenIdx
Helper I
Helper I

Row result filtering

I have elaborated a model of which I have a situation with the measure "% Var Total" this measure has two behaviors one at the detail level (product) and the other in the subtotals depending on the aggregations used.

Taking as good the result of the calculation in my matrix, articles are shown that although they had movement do not correspond to the filtered period, for example the product "Item1097" had movements in March 2018 when I am comparing 2020 vs 2019.

Can you tell me what is the correct way to filter this result?

 

I appreciate your guidance in advance

 

Here is the model download link

 

https://drive.google.com/file/d/1uIlxPNASRaix02481wKpbFK3fwj9HsHy/view?usp=sharing 

 

Preview Datamodel.png

 

 

The measure in question:

 

% Var Total = Var TsVarTotal = DIVIDE(CALCULATE(Ventas[Varia Total]),CALCULATE([Venta Anterior]),0) 
VAr X = 1

 Var ProdVaria= CALCULATE([Varia Total Z])
Return 
SWITCH(TRUE(),
       HASONEVALUE(Productos[Producto]),ProdVaria,
       HASONEVALUE(Clases[Desc Clase]),TsVarTotal,            	
       HASONEVALUE(DivRes[DivShr]),TsVarTotal, 
       HASONEVALUE(Ventas[SECTOR]),TsVarTotal,                                 	
       HASONEVALUE(Clientes[Holding]),TsVarTotal, 
       HASONEVALUE(Vendedores[Name Vendedor]),TsVarTotal, 
       HASONEVALUE(Monedas[Currency]),TsVarTotal,
       BLANK()
)

 

 

1 ACCEPTED SOLUTION

Hi @RubenIdx ,

 

If you don't want to see blank and 0 data, you could configure fields it in the filter pane.

3-1.PNG

You could use ISINSCOPE() function to keep the orginal total value.

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @RubenIdx ,

 

I still don't understand your issue totally, you could show your expected result here.

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi!, thanks for the attention.

 

The expected result is to avoid or hide rows with no data in the selected periods for example in the next image the rows into the red square has no data because these items had sales along 2018 or among april 2019 and december 2019 and Im comparing jan-march 2019 vs jan-march 2020.

DatamodelOriginal.png

 

And this is the result I would like to achieve.

DatamodelExpected.png

 

Thanks in advance.

 

Hi @RubenIdx ,

 

If you don't want to see blank and 0 data, you could configure fields it in the filter pane.

3-1.PNG

You could use ISINSCOPE() function to keep the orginal total value.

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.