Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

EARLIER Calculation in a Calculated table and column

Hello,

 

I was following the article https://pbidax.wordpress.com/2015/09/27/use-calculated-table-to-figure-out-monthly-subscriber-number... step by step.

 

All went well until the last calculation that used the function EARLIER.

 

I get the wrong numbers and I cannot figure out why.

 

The calculation I refer to is the calculated column 'Monthly Joined and Left'[Subscribers]

 

Please see the file in the link:

MonthlySubscriberCountTamir

 

Thanks for any help,

 

Tamir

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

I found this issue is caused with blank records, I test both your file and the sample file but can't found out why these records only generated on you side.

3.PNG


Maybe you can try to add condition to remove these blank records, after this steps, your formula works well.

 

MonthlyJoinedAndLeft = FILTER(SUMMARIZECOLUMNS(MonthlyJoined[MonthJoined], "CountJoined", SUM(MonthlyJoined[CountJoined]), "CountLeft", SUM(MonthlyLeft[CountLeft])),[MonthJoined]<>BLANK())

 

Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

I found this issue is caused with blank records, I test both your file and the sample file but can't found out why these records only generated on you side.

3.PNG


Maybe you can try to add condition to remove these blank records, after this steps, your formula works well.

 

MonthlyJoinedAndLeft = FILTER(SUMMARIZECOLUMNS(MonthlyJoined[MonthJoined], "CountJoined", SUM(MonthlyJoined[CountJoined]), "CountLeft", SUM(MonthlyLeft[CountLeft])),[MonthJoined]<>BLANK())

 

Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft

 

Your solution works like a charm 🙂

 

Thank you,

Tamir

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.