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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MonishaM
Frequent Visitor

Calculation group not working as expected

Hi all

I am trying to do something very simple with calculation groups, but I can't figure out why it isn't working. So I have a calculation group with calculation item Test. The logic is as follows

Test = SELECTEDMEASURE() + 1000

I have a measure TestCalcGroup = Calculate(1 , 'Calculation group'[Calculation group column]= 'Test')

I have a KPI card on the report page where I have selected the TestCalcGroup Measure. I expect that it would return 1001. But it only returns 1.

The only time it returns 1001 is if I have the 'Calculation group'[Calculation group column] on the report page as either slicer or filter.  Unfortunately, the use case I am attempting to address does not permit the use of this.

I went through multiple videos and documentation and according to those what I have should Ideally work, but it doesn't. 

Any help is appreciated.

Regards,
Monisha

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @MonishaM 

Calculation items only have effect when applied to measure references, not arbitrary expressions.

See this SQLBI article for a good discussion of this.

 

So if you instead created a measure

 

One = 1

 

then this version of TestCalcGroup which applies the calculation item Test to the measure [One] would return 1001:

 

TestCalcGroup =
CALCULATE (
    [One],
    'Calculation group'[Calculation group column]= 'Test'
)

 

 

Does this help in your particular case?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @MonishaM 

Calculation items only have effect when applied to measure references, not arbitrary expressions.

See this SQLBI article for a good discussion of this.

 

So if you instead created a measure

 

One = 1

 

then this version of TestCalcGroup which applies the calculation item Test to the measure [One] would return 1001:

 

TestCalcGroup =
CALCULATE (
    [One],
    'Calculation group'[Calculation group column]= 'Test'
)

 

 

Does this help in your particular case?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.