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
Tome_05
Helper III
Helper III

There is a discrepancy between the displayed total value and the actual value.

The total value in the attached image is 40,530, but when calculated, the true total value is 40,613. I want to correct this dissociated state.
The filter is not applied at all.
Please help someoneスクリーンショット 2022-06-09 154554.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Tome_05 ,

 

Strange. Please try:

new_measure =
IF (
    ISINSCOPE ( 'Table'[言語] ),
    [Number of users],
    SUMX ( 'Table' , [Number of users] )
)

If it still doesn't, please share the pbix file.

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
Tome_05
Helper III
Helper III

@Anonymous 

Thank you.
I tried it, but the numbers changed a lot and the total values did not match.
Is the formula wrong?
please tell me.

By the way, I created the formula as shown in the attached image.スクリーンショット 2022-06-16 115923.jpg

Anonymous
Not applicable

Hi @Tome_05 ,

 

Try use KEEPFILTERS() instead of ALLSELECTED().

If it still doesn't work, please show the formula you are using.

 

Best Regards,

Jay

@Anonymous 

Thank you for contacting us.


I tried KEEPFILTERS but the results didn't work.

This is the formula.


Number of users = DISTINCTCOUNT (raw_data [cookie]) +0

Only unique values are displayed in DISTINCTCOUNT, and the number of people is shown in the table.


I just want to count this unique value, but the total value is 41,417.
However, as shown in the attached image, the total value is 41,334 when the value is given by DISTINCTCOUNT in the major.
In the case of the advice (new_measure) received, the total value is 87,112.
Please tell me how to put 41,417 in the total column.

 

I am always grateful for your help.

スクリーンショット 2022-06-16 152932.jpg

スクリーンショット 2022-06-16 154235.jpg

Anonymous
Not applicable

Hi @Tome_05 ,

 

Strange. Please try:

new_measure =
IF (
    ISINSCOPE ( 'Table'[言語] ),
    [Number of users],
    SUMX ( 'Table' , [Number of users] )
)

If it still doesn't, please share the pbix file.

 

Best Regards,

Jay

Anonymous
Not applicable

Hi @Tome_05 ,

 

Create a new measure like below and use it to replace current measure in value field:

 

new_measure =
IF (
    ISINSCOPE ( 'Table'[言語] ),
    [current_measure],
    SUMX ( ALLSELECTED ( 'Table' ), [current_measure] )
)

 

Best Regards,

Jay

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.