Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
The total isn't correct at this moment, the answer must be "8"
Solved! Go to Solution.
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
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
Thanks, this is the solution
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |