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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
HemanthV
Helper II
Helper II

ALLEXCEPT is not working for virtual column

Hi Guys,

 

I am facing issue to get denominator to calculate percentage, i don't have any issue with Numerator since it is just a distinct count of projects but i am facing issue with denominator. I need to sum the count for individual category.

 

Denominator =
var virtable = SUMMARIZE('Table','Table'[Axis],'Table'[Value],"Count", DISTINCTCOUNT('Table'[Project Name]))
var denominator = CALCULATE( SUMX(virtable,[Count]), ALLEXCEPT('Table', 'Table'[Axis]))
return
denominator
 
I have created a virtual table and i am trying to add the "Count" column but ALLEXCEPT function is not working as expected here.
 
Expected Output:
Please help me on this!
Thanks in advance!
 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HemanthV ,

 

I'd suggest you create a new table and then create a measure separately:

Summarized = SUMMARIZE('Table','Table'[Axis],'Table'[Value],"Count", DISTINCTCOUNT('Table'[Project Name]))
Measure = CALCULATE(SUM(Summarized[Count]),FILTER('Summarized',[Axis]=MAX('Table'[Axis])))

 

Eyelyn9_0-1645076426375.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @HemanthV ,

 

I'd suggest you create a new table and then create a measure separately:

Summarized = SUMMARIZE('Table','Table'[Axis],'Table'[Value],"Count", DISTINCTCOUNT('Table'[Project Name]))
Measure = CALCULATE(SUM(Summarized[Count]),FILTER('Summarized',[Axis]=MAX('Table'[Axis])))

 

Eyelyn9_0-1645076426375.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@HemanthV , change this and try

var denominator = CALCULATE( SUMX(filter(virtable,[Axis] =max([Axis])),[Count]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Thanks for your reply. I have tried it, but it did not worked.

 

HemanthV_0-1644832249380.png

I have provided sample pbix, can you please try on that file?

 

Please find the attached pbix with sample data

https://drive.google.com/file/d/1grYgcTwNLzWdZdB4gLPwbpH23_NwcQb6/view?usp=sharing

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.