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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mgrisolia
Regular Visitor

Ignore Date filter

Buenas Tardes, tengo el siguiente modelo de datos

mgrisolia_0-1737463381297.png

Necesito mostrar en la misma matriz los movimientos (Tabla MOVIMENTI) con el valor QTA_DISP_SALDO asociado al articulo del movimiento. He creado dos medidas

DISP_SALDO1 = SUM(vwDisponibileRealTime[QTA_DISP_SALDO])
DISP_SALDO =
var _qta=SUMX(MOVIMENTI, [DISP_SALDO1])+0
RETURN
_qta
 MI problema es que cuando adiciono la medida DISP_SALDO a la matriz el filtro del calendario deja de tener efecto:
Con medida DISP_SALDO
mgrisolia_2-1737463783303.png

 

Si modifico la medida 
DISP_SALDO =
var _qta=SUMX(MOVIMENTI, [DISP_SALDO1])
RETURN
_qta
 y elimino el 0, el filtro tiempo es correcto, pero necesito que los movimientos de ese dia, sin QTA_DISP_SALDO vengan mostrados en la matriz. Es decir, necesito que todos los movimientos de ese dia vengan mostrados, sin importar si tienen o no una QTA_DISP_SALDO.

 

Espero haberme expresado de manera clara, gracias por cualquier ayuda que puedan brindarme
Melissa

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mgrisolia ,

 

Please try code as below to update your measure.

DISP_SALDO = 
VAR _table =
    SUMMARIZE (
        MOVIMENTI,
        MOVIMENTI[ID_MOVIMENTI],
        'CALENDAR'[Date],
        MOVIMENTI[ARTI],
        "qta",
        VAR _ARTI = [ARTI]
        RETURN
            CALCULATE (
                [DISP_SALDO1],
                FILTER (
                    vwDisponibileRealTime,
                    vwDisponibileRealTime[ARTI] = _ARTI
                )
            ) + 0
    )
RETURN
    SUMX ( _table, [qta] )

Result is as below.

vrzhoumsft_0-1737623193590.png

 

Best Regards,
Rico Zhou

 

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
mgrisolia
Regular Visitor

Hi @Anonymous , 

Thank you very much for your help, it works perfectly.

Anonymous
Not applicable

Hi @mgrisolia ,

 

Due to I don't know what your tables look like and what columns you choose to relate between tables, here I create a sample to have a test.

Relationship in my sample:

vrzhoumsft_2-1737510187679.png

We can see that if we use [Date] from 'MOVIMENTI' table, the issue is reproduced.

If you use [Date] from 'CALENDAR', it works. We use [Date] from 'CALENDAR' to create the date slicer.

vrzhoumsft_0-1737510087250.png

If this reply still couldn't help you solve your issue, please share a sample file with us.

 

Best Regards,
Rico Zhou

 

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

 

 

The problem with the date is solved as you say in the file you attached, but if I add another column of interest from the movement table it adds the posible combinations as shows in the following image

 

mgrisolia_1-1737534797268.png

 

I need it to show me only the movement records for the selected date and to add the QTA column of the vwDisponibileRealTime table (If the item is not found in the vwDisponibileRealTime table, indicate QTA=0)

 

I'm trying to add the pbix file but it won't let me, for the image, use the same file that you sent me, adding an ID field to the movement table, and add a movement with an item that is not found in the vwDisponibileRealTime table.

 

Thanks a lot for your help

 

Melissa

Anonymous
Not applicable

Hi @mgrisolia ,

 

Please try code as below to update your measure.

DISP_SALDO = 
VAR _table =
    SUMMARIZE (
        MOVIMENTI,
        MOVIMENTI[ID_MOVIMENTI],
        'CALENDAR'[Date],
        MOVIMENTI[ARTI],
        "qta",
        VAR _ARTI = [ARTI]
        RETURN
            CALCULATE (
                [DISP_SALDO1],
                FILTER (
                    vwDisponibileRealTime,
                    vwDisponibileRealTime[ARTI] = _ARTI
                )
            ) + 0
    )
RETURN
    SUMX ( _table, [qta] )

Result is as below.

vrzhoumsft_0-1737623193590.png

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors