cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

IF condition in Grand Total

Hi to all,

i have a question about a measure to calculate grand total with particular condition.

 

I have 3 columns A, B and C

I want insert this condition:

IF A+B > C then A+B else 0

 

This formula work correclty in the table rows but not work in Grand Total .

May you help me to solved this issue?

 

Thanks in advance

Franco 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: IF condition in Grand Total

You can create a new measure (not column) using DAX as follows:

 

Measure = IF(SUM(Data[A])+SUM(Data[B])>SUM(Data[C]);SUM(Data[A])+SUM(Data[B]);0)

View solution in original post

1 REPLY 1
Highlighted
Anonymous
Not applicable

Re: IF condition in Grand Total

You can create a new measure (not column) using DAX as follows:

 

Measure = IF(SUM(Data[A])+SUM(Data[B])>SUM(Data[C]);SUM(Data[A])+SUM(Data[B]);0)

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors