Round formula result

Hello Folks :slight_smile:

Do you know how to round a formula result ?

For example my formula is :

(([Data FB Ads].Filter(Day.Matches([daterangepicker 2])).[CPM (Cost per 1,000 Impressions)].Sum()-[Data FB Ads].Filter(Day.Matches([daterangepicker 4])).[CPM (Cost per 1,000 Impressions)].Sum())/[Data FB Ads].Filter(Day.Matches([daterangepicker 4])).[CPM (Cost per 1,000 Impressions)].Sum())*100

But the result is something like : XX.XXXXXXXXXX %.

I tried the Round formula but it’s not working and I didn’t find the way to round to 2 and get a result like this XX.XX %.

Do you have a solution please ?

Thank you for your help :slight_smile:

Sometimes you have to add ToNumber() at the end and then round it.

There’s no way I can replicate your formula, so a screenshot or a shared doc would definitely help.

Round([My Formula].ToNumber(), 2) * 100 should work.

1 Like

Hello and thank you for answer @cnr ! Oh yeah, forgot to share the link : :slight_smile:

Ok, I think I fixed it

  (([Facebook Ads].Filter(Day.Matches([daterangepicker 1])).[Amout spent].Sum()-[Facebook Ads].Filter(Day.Matches([daterangepicker 4])).[Amout spent].Sum())/[Facebook Ads].Filter(Day.Matches([daterangepicker 4])).[Amout spent].Sum())*100, 
1 Like

Thank you very much for your help @cnr :slight_smile:

1 Like