Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I am using Power Bi and searched and the forums and couldn't find anything similar to what I am using

So, I had a table that looks like this

enter image description here

I have used the following measures

RetentionRate = (ReturningUsers / PreviousDayDistinctUsers)*100%

ReturningUsers = DistinctUsers - NewUsers

PreviousDayDistinctUsers = CALCULATE(DISTINCTCOUNT(table[User], PREVIOUSDAY(table[Date])

NewUsers = CALCULATE(DISTINCTCOUNT(table[User] ), table[MonthlyNewUsers] = BLANK () )

 

1 Answer

0 votes
by (22.5k points)
edited by

Use the following measures

PreviousDayDistinctUsers =
   VAR Current_Day = LASTDATE ( table[Date] )
   RETURN 
    CALCULATE ( DISTINCTCOUNT ( table[User] ), table[Date] < Current_Day ) 

Do you wish to learn Power BI? Do check out how you can become a Power BI Developer from this blog.

Get an introduction to Power Bi by checking out the following youtube link: 

 

Want to earn a certificate in Power BI? here is the Power BI Course that will make you industry ready.

Related questions

0 votes
1 answer
asked Feb 21, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
asked Mar 28, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
asked Feb 14, 2021 in BI by Chris (11.1k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...