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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
ImSctm
Frequent Visitor

FILTER hiddes total

Hello, 

When I apply a filter on a virtual table, it removes the total value which I'm looking for. 

a) Without FILTER:

ImSctm_0-1695898957223.pngImSctm_1-1695898984836.png

 


2) FILTER on virtual table SUMX:

ImSctm_2-1695899307694.pngImSctm_3-1695899328015.png

 

Why does the total hide when I filter the virtual table that I've created before? My expected result should be 8 as it is the sum of 1 shown in the same table. How to solve it? 

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ImSctm ,

You can create another new measure as below base on the measure [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN] to get the total value and replace the measure [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN] with the new measure on the table visual:

Measure =
SUMX (
    VALUES ( 'Productivitat DIA'[CODI FEINA] ),
    [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN]
)

vyiruanmsft_0-1696497531752.png

 

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

3 REPLIES 3
ImSctm
Frequent Visitor

Thanks @amitchandak for answering. Much appreciated 🙂
Unfortunately what I've tried still didn't work. It's returning same outcome where number "8" still hidden.

Code:
VAR Diferencia_Hores =

Hores_Mes_Actual - Hores_Mes_Anterior

VAR Variacio_Disminueix = "Disminueix"
VAR Variacio_Incrementa = "Incrementa"
VAR Variacio_NoVaria = "No varia"

VAR Taula_Dif_Hores =
FILTER(
    GROUPBY(
        ADDCOLUMNS(
                CALCULATETABLE(
                SUMMARIZE('Productivitat DIA','Productivitat DIA'[CODI FEINA])
                ,REMOVEFILTERS('Calendari Diari'),REMOVEFILTERS('Calendari Mensual'))
            ,"Diferència Hores",Diferencia_Hores
            ,"Variacio", IF(Diferencia_Hores <0, Variacio_Disminueix, IF(Diferencia_Hores <0, Variacio_Incrementa,Variacio_NoVaria))
            ),
        [Variacio],"Quantitat feines", COUNTX(CURRENTGROUP(),[Diferència Hores]))
,[Variacio]=Variacio_Disminueix)

VAR Numero_Feines_Disminueixen_Hores =
SUMX(Taula_Dif_Hores,[Quantitat feines])

RETURN
Numero_Feines_Disminueixen_Hores



ImSctm_0-1696326602290.png

 

Any suggestions? 
Thanks!


Anonymous
Not applicable

Hi @ImSctm ,

You can create another new measure as below base on the measure [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN] to get the total value and replace the measure [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN] with the new measure on the table visual:

Measure =
SUMX (
    VALUES ( 'Productivitat DIA'[CODI FEINA] ),
    [Numero Hores 3002 “PDIA” MesActualPROVAAA_INCREMENTEN]
)

vyiruanmsft_0-1696497531752.png

 

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

amitchandak
Super User
Super User

@ImSctm , Move this filter to group by and try.  Means use filter on top of group by in var and then have same return

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.