Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hey all,
I have a company live BI dataset I'm connected to, so using measures is the only option to calculate what I want.
Simple dataset example:
order | amount | rounded value |
1 | 1,2 | 2 |
2 | 0,9 | 1 |
3 | 4,2 | 5 |
TOTAL | 6,3 | should be 8 (total of the column) but insted it rounds the 6,3 -> 7 |
The formula I use, which helped others in the forum
Solved! Go to Solution.
please try
ordered = SUMX( VALUES('Sales'[Order]), roundup([Amount],0) )
I've used the same measure against that data and it gives 8 as the total.
Is the 'Sales Orders Measures' table the table which includes the order number? Is [Amount] a column or a measure ?
I've used
ordered = CALCULATE( SUMX('Table2', ROUNDUP( 'Table2'[amount],0)))
where Table2 contains the data and it is performing the ROUNDUP against a column, not a measure.
Nope. 'Sales Orders Measures' has the amount, and Sales has the order number.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
28 | |
13 | |
13 | |
10 | |
6 |