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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sambias
New Member

Issue with calculation group in power bi premium

I've created a calculation group "Periods" in tabular model using visual studio, this calculation group have one calculation item called PY , with this formula ( for test purpose ) :

var Formula=calculate(SELECTEDMEASURE(),'FISCAL YEAR'[FISCAL_YEAR]="2023")

 

return Formula

 

When I've deployed the model in a power bi premium capacity everything goes fine. If I used the calculation item in a measure, the filter doesn't work. I discover that the problem is related to empty calculation group table. I've alredy done a full process of this table.

 

Using dax studio with this statement : evaluate Periods  rise an errror because the table is empty

 

1 ACCEPTED SOLUTION
sambias
New Member

It's necessary do run a process recalc, and the calculation group works only in reference to a measure not to a base farmula like sum(column )

View solution in original post

6 REPLIES 6
sambias
New Member

It's necessary do run a process recalc, and the calculation group works only in reference to a measure not to a base farmula like sum(column )

sambias
New Member

It works only if I filter the calculation item in the visual, but It filter also other measures. 

muhssamy
Resolver I
Resolver I

First question why you harded coded the value of the year instead of using SAMEPERIODLASTYEAR(<dates>)?
and could you share the model diagram to understand how is everything is communicating ?

I've tried sameperiodlastyear, but to isolate the issue I've changed the formula. 

Hi @sambias - Deploy the updated model to Power BI Premium and use the calculation group in a matrix or table visual.

If applying the "PY" calculation item still doesn’t show results, ensure:

  • Measures are correctly defined.
  • Relationships in the model are active.
  • Slicer or visual filters are not interfering.

 

PY = CALCULATE(SELECTEDMEASURE(), 'FISCAL YEAR'[FISCAL_YEAR] = "2023")

 

If you're still facing issues even after isolating the formula and testing with a basic calculation, the problem might not be with the formula itself but rather with how calculation groups interact with the model or filters.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





 I tried to simplify the model as much as possible, but the problem is still there.

 

The model now have only one table ( in order to isolate the issue )

 

only 1 table :

 

sambias_0-1734635402412.pngsambias_1-1734635435009.png

 

measure test :  

calculate(sum(RETAIL[NET_QUANTITY]),Calc[Group]="TEST")

 If I use the measure in a simple query, value aren't filtered, but If I write the same dax code , withous using calculation group, value are calculated correctly. I've done a process recalc ( and also a full process ) for the entire model.

 

sambias_2-1734635552637.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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