cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fpavan76 Frequent Visitor
Frequent 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
pawelpo Member
Member

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
pawelpo Member
Member

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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 491 members 4,053 guests
Please welcome our newest community members: