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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Deimantas
Frequent Visitor

Incorrect total value in table

Hi Guys, 


I know there are multiple threads opened for this issue, but I can't apply any of them to my issue.(I'm new with Power BI/ Dax ) 
So I have a problem the total in my table is wrong I read that Power  Bi applies filters as default and you can rebuild the total value with sumx but I can't make that work for me. 

Column count of pickinghours2  it's a distinctive count of pickinghours2
For test11: 

 

Test11 = VAR lopas =
DISTINCTCOUNT(pickingproductivityview[pickinghour2])
Return
IF(AND(lopas>= 3 , lopas <= 6 ), lopas - 0.5,IF(lopas>6, lopas - 1,IF(lopas < 3,lopas,BLANK())))



Deimantas_0-1668775631280.png

 

2 REPLIES 2
FreemanZ
Super User
Super User

The suggestion would be to return blank there, with the code below:

Test11 = 

VAR lopas =

        DISTINCTCOUNT(pickingproductivityview[pickinghour2])

    Return

    IF (

            HASONEVALUE (pickingproductivityview[user],

        IF(

            AND(lopas>= 3 , lopas <= 6 ), 

            lopas - 0.5,

            IF(

                lopas>6, 

                lopas - 1,

                IF(lopas < 3,lopas,BLANK())

             )

        ),

BLANK()

)

Hi FreemanZ,

Thank you for the replay. 

Unfortunately, now I don't see any values in the total section and if I'm trying to use this measure in "Card" visual is not displaying anything. 

I have used your suggestion as per below: 

Test11 =
VAR lopas =
DISTINCTCOUNT(pickingproductivityview[pickinghour2])

Return
IF(HASONEVALUE(pickingproductivityview[codprp]),
IF(AND(lopas>= 3 , lopas <= 6 ), lopas - 0.5,IF(lopas>6, lopas - 1,IF(lopas < 3,lopas,BLANK()))),BLANK())

 

Deimantas_0-1668783388910.png

 





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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