cancel
Showing results for
Search instead for
Did you mean:
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 .

 sales formula 1 formula 2 500 250 0 700 350 1 800 400 1 Total - 2000 Total - 1000 Total -0

kindly help me .

Thank you

1 ACCEPTED SOLUTION
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])

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!

1 REPLY 1
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])

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!

Helpful resources

Announcements

Welcome to the User Group Public Preview

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

Check it Out!

Click here to read more about the April 2021 Updates!

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.

Experience what’s next for Power BI

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

Top Solution Authors
Top Kudoed Authors