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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

roundup

Hi,

 

For each row i have a column dat I want to roundup

ROUNDUP[QTY];0)

 

ID | Vendor | Qty | Roundup
1   | A     | 0,3  | 1
2   | B     | 1,6  | 2
3   | A     | 1,2  | 2
 

Now i want the the sum of the roundup column for each Vendor. At this moment the the table calculates first the sum of the QTY and after that its ROUNDUP

 

For Vendor A => 0,3 + 1,2 = 1,5 (roundup 2,0)

For Vendor B => 1,6 = (roundup 2,0)

Total roundup = 4,0

 

round.jpg

The total isn't correct at this moment, the answer must be "8"

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

you have to adjust your Measure somewhat, but without knowing your formual it's also a little guesswork, if you want to round first, you have to use a tableiterator that calculates an expression on the row level and finally creates the sum

 

CALCULATE(

  SUMX('yourtable'[customer], ROUNDUP('yourtable'[qty]'))
)

 

Hope this helps



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

you have to adjust your Measure somewhat, but without knowing your formual it's also a little guesswork, if you want to round first, you have to use a tableiterator that calculates an expression on the row level and finally creates the sum

 

CALCULATE(

  SUMX('yourtable'[customer], ROUNDUP('yourtable'[qty]'))
)

 

Hope this helps



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Thanks, this is the solution

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.