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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Correct total calculation when using a filitered measure (SUMX)

Hello all,

 

i have an issue showing the correct total, consequence of my filtered measure. The correct ammount should be 156,730. I figure this could be solved using isfiltered  or hasonevalue but im not pretty familiar with this function, i would appreciate a tip on how to workaround this.

 

i am using the calendar to see if the values are filtered or not 

hasonevalue = (HASONEVALUE(CalendarTable[Fiscal Year])).

yukipilas_0-1605089608154.png

 

i am using the calendar to see if the values are filtered or not 

hasonevalue = (HASONEVALUE(CalendarTable[Fiscal Year])).
 
The SUMIFEH function is the one filtering the values 
 
 
 

Capture.PNG

 
 
 
 
 
 

 very grateful for the help

 

Miguel

 

 

 

 
 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I got this solution to work

 

hasonevalue = IF(HASONEVALUE(CalendarTable[Fiscal Year]),[SUMIFEH_2],SUMX(VALUES(CalendarTable[Fiscal Year]),[SUMIFEH_2]))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I got this solution to work

 

hasonevalue = IF(HASONEVALUE(CalendarTable[Fiscal Year]),[SUMIFEH_2],SUMX(VALUES(CalendarTable[Fiscal Year]),[SUMIFEH_2]))
amitchandak
Super User
Super User

@Anonymous , Change return like sumx(Values(Table[Fiscal Year]), P)

Anonymous
Not applicable

Thank you for the help 

unfortuneately not working still giving me a wrong value i tried using the calendar table fiscal year and the built and normal calendar 

yukipilas_1-1605091737232.png

 

yukipilas_0-1605091630636.png

 

yukipilas_2-1605091796696.png

 

yukipilas_4-1605091846915.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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