How to split number based on frequency

Hello @Manaswini_UI try this

String.Join(“,”, Enumerable.Repeat(Freq, Num \ Freq).Concat(If(Num Mod Freq > 0, {Num Mod Freq}, {})))

and If Num = 10 and Freq = 3

Then this expression will return 3,3,3,1

Cheers

1 Like