cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rajendrabobade
Helper II
Helper II

Need total of calculated if condition measure

Hello,

 

I need a total of calculated measure(formula 2) for example :

Formula 1 -divide(sales ]),DATEDIFF(MAX('Calendar'[Start Year]),MAX('Calendar'[Date]),MONTH) +1 )

Formula 2- if(formula 1>=300,1,0)

In below table i need formula 2 total sholud be 1+1 = 2 but still  showing 0 please guide me for this .

 

salesformula 1formula 2
5002500
7003501
8004001
Total - 2000Total - 1000Total -0

 

 

kindly help me .

Thank you

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Rajendrabobade , if(formula 1>=300,1,0)

 

Need a context , so if do not give that, if will re calculate at grand total level

 

assume you have a group by in visual you can try

 

sumx(Summarize(Table, Table[Column], "_1",if([formula 1]>=300,1,0)),[_1])

 

refer: https://www.youtube.com/watch?v=qE5KBp4uP0g



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@Rajendrabobade , if(formula 1>=300,1,0)

 

Need a context , so if do not give that, if will re calculate at grand total level

 

assume you have a group by in visual you can try

 

sumx(Summarize(Table, Table[Column], "_1",if([formula 1]>=300,1,0)),[_1])

 

refer: https://www.youtube.com/watch?v=qE5KBp4uP0g



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.