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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Calculate function not working as expected

Hi all

 

I have a metric which keeps track of cumulative users against dates, there are 4 users at the end of my period. I have a column which tells me if a customer is a parent or not, IS_PARENT. Type is true/false, and for all records, this field is true. So my expectation is that, when I run the same metric with calculate function and put a filter of IS_PARENT equals true, it should return 4. However it returns zero. when I put false, it still returns 0.

 

It feels like I am splitting something into two halves, and I get zero for both of the halves. In my column there are no blanks, and it is a true/false field, so I do not understand how 4 = 0 + 0 

 

check_measure1 = CALCULATE([Cumulative_Users])
check_measure2 = CALCULATE([Cumulative_Users], Accounts[IS_PARENT] =true )
check_measure3 = CALCULATE([Cumulative_Users], Accounts[IS_PARENT] =false)
 
 
dorukturkoglu_0-1694804309484.png

 

 How can this be possible? Additionally if I change all IS_PARENT values to false, then I get the value 4 for false. 
 
dorukturkoglu_1-1694804448988.png

 

 

2 REPLIES 2
TomMartens
Super User
Super User

Hey @Anonymous ,

 

unfortunately some information is missing

  • DAX statement for the measure [Cumulative_Users]
  • data type of the column [IS_Parent]

Also, povide a screenshot of the datamodel that contains the tables and relationships that are affected by the measures.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi @TomMartens , thank you so much for your response. Actually I have simplified my problem

 

I changed IS_PARENT to integer and put random values, 44 and 55.

For both of these measures it is returning zero.

check_measure2 = CALCULATE([Cumulative_Users]Accounts[IS_PARENT] =44)
check_measure3 = CALCULATE([Cumulative_Users]Accounts[IS_PARENT] =55)
 
However this measure returns 4
 
check_measure1 = CALCULATE([Cumulative_Users], Accounts[IS_PARENT] =0)
 
Surely I must be missing something here, because the value zero does not even exist as a value in my field 
 
dorukturkoglu_0-1694810089122.png

 

 
 

 

 

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.