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! Request now

Reply
rsbin
Super User
Super User

Summarize with ALLEXCEPT

Good Day All,

 

I have the following formula to calculate Standard Deviation with a virtual table:

 

StdDev_EquipIDRatio Allexcept = 
VAR _table = SUMMARIZE(FILTER(GeneralStatistics, GeneralStatistics[TotalVisits] <> 0),[Date], [GSIndex], 
"_EquipIDRatio",[EquipmentIDRatio]) 
RETURN 
STDEVX.P(_table,[_EquipIDRatio]) ​

 

I want this formula to ignore any Date Filter contexts on my report page (Calendar, Calendar[Date]).

Figured I should use the ALLEXCEPT function, but am unable to get the syntax correct to make it work.

Hoping someone can advise where the ALLEXCEPT function fits into the Summarize statement.  My [TotalVisits] filter is used to eliminate NaN errors.

 

Thanks much!

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@rsbin - Should be along the lines of:

 

StdDev_EquipIDRatio Allexcept = 
VAR _table = SUMMARIZE(FILTER(ALLEXCEPT(GeneralStatistics,...), GeneralStatistics[TotalVisits] <> 0),[Date], [GSIndex], "_EquipIDRatio",[EquipmentIDRatio]) 
RETURN 
STDEVX.P(_table,[_EquipIDRatio])

The ... is where you would list your columns that you want to keep filters on. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@rsbin - Should be along the lines of:

 

StdDev_EquipIDRatio Allexcept = 
VAR _table = SUMMARIZE(FILTER(ALLEXCEPT(GeneralStatistics,...), GeneralStatistics[TotalVisits] <> 0),[Date], [GSIndex], "_EquipIDRatio",[EquipmentIDRatio]) 
RETURN 
STDEVX.P(_table,[_EquipIDRatio])

The ... is where you would list your columns that you want to keep filters on. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

 

Kudos my friend.  Thank you much!

StdDev_EquipIDRatio Allexcept = 
VAR _table = SUMMARIZE (FILTER(ALLEXCEPT(GeneralStatistics, GeneralStatistics[Date]), GeneralStatistics[TotalVisits] <> 0),
'Calendar'[Date], [GSIndex], 
"_EquipIDRatio",[EquipmentIDRatio])
RETURN 
STDEVX.P(_table,[_EquipIDRatio])

 Had to make one little tweak though.  Had to adjust [Date] to 'Calendar'[Date].   Not sure why, but seems to be working

Anyhow,  thanks again for the quick response.

 

Best Regards,

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors