Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have files I receive monthly that I use to update shipping requirments month after month.
Each file has a list of products as well as the ship month and the quantity that is to ship in those months. I add a 'Date Create' to know when I received the file.
I use the SUMX function to sum all the data, then use the CALCULATE function to get the last non-blank value.
When I add the 'Date Created to the Rows along with the Product, each row total is correct, however the grand total is not.
I'm attaching some sample data in a .pbix file that will show what I am seeing.
I need to show the Grand Total with corect quantitys when it is presented.
Please help me with this function to get the data I need. I've reviewed multiple YouTube videos concerning "Incorrect Totals", and I have not been able to figure this out.
ChatGPT is stumped as well.
Solved! Go to Solution.
Hi @RobRayborn
Please refer to the following test:
Create measures as follow
Measure2 =
IF (
ISFILTERED ( 'Table'[Date Created] ),
[YourUsingLASTNONBLANKMeasureName],
IF (
ISFILTERED ( 'Table'[Product] ),
SUMX ( VALUES ( 'Table'[Date Created] ), [YourUsingLASTNONBLANKMeasureName] ),
SUMX ( VALUES ( 'Table'[Product] ), [YourUsingLASTNONBLANKMeasureName] )
)
)
Measure3 =
IF(
ISFILTERED('Table'[Ship Date]), [Measure2], SUMX(VALUES('Table'[Ship Date]), [Measure2])
)
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Did not work.
Hi @RobRayborn
Please refer to the following test:
Create measures as follow
Measure2 =
IF (
ISFILTERED ( 'Table'[Date Created] ),
[YourUsingLASTNONBLANKMeasureName],
IF (
ISFILTERED ( 'Table'[Product] ),
SUMX ( VALUES ( 'Table'[Date Created] ), [YourUsingLASTNONBLANKMeasureName] ),
SUMX ( VALUES ( 'Table'[Product] ), [YourUsingLASTNONBLANKMeasureName] )
)
)
Measure3 =
IF(
ISFILTERED('Table'[Ship Date]), [Measure2], SUMX(VALUES('Table'[Ship Date]), [Measure2])
)
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RobRayborn
Could you please share some sample data and the expected results based on the sample data? So that I can help you better. How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show them as screenshots or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.
Best Regards,
Yulia Xu
Hi @RobRayborn
Thanks for sharing the sample data, please try the following formula:
Measure = SUMX(VALUES('YourTableName'[Product]), [YourUsingLASTNONBLANKMeasureName])
If the problem persists then I may need to know how your formula is written so I can test it.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Is there a way for me to send you or upload the sample .pbix file?
Date CreatedProductShip DateQty.
12/10/2023 | AAA | 1/1/2024 | 230 |
12/10/2023 | AAA | 2/1/2024 | 880 |
12/10/2023 | AAA | 3/1/2024 | 699 |
12/10/2023 | AAA | 4/1/2024 | 733 |
12/10/2023 | AAA | 5/1/2024 | 254 |
12/10/2023 | AAA | 6/1/2024 | 798 |
12/10/2023 | AAA | 7/1/2024 | 271 |
12/10/2023 | AAA | 8/1/2024 | 437 |
12/10/2023 | AAA | 9/1/2024 | 532 |
12/10/2023 | AAA | 10/1/2024 | 275 |
12/10/2023 | AAA | 11/1/2024 | 324 |
12/10/2023 | AAA | 12/1/2024 | 1080 |
12/10/2023 | AAA | 1/1/2025 | 317 |
12/10/2023 | AAA | 2/1/2025 | 966 |
12/10/2023 | BBB | 1/1/2024 | 1088 |
12/10/2023 | BBB | 2/1/2024 | 547 |
12/10/2023 | BBB | 3/1/2024 | 95 |
12/10/2023 | BBB | 4/1/2024 | 668 |
12/10/2023 | BBB | 5/1/2024 | 464 |
12/10/2023 | BBB | 6/1/2024 | 136 |
12/10/2023 | BBB | 7/1/2024 | 747 |
12/10/2023 | BBB | 8/1/2024 | 517 |
12/10/2023 | BBB | 9/1/2024 | 454 |
12/10/2023 | BBB | 10/1/2024 | 995 |
12/10/2023 | BBB | 11/1/2024 | 761 |
12/10/2023 | BBB | 12/1/2024 | 684 |
12/10/2023 | BBB | 1/1/2025 | 275 |
12/10/2023 | BBB | 2/1/2025 | 394 |
12/10/2023 | CCC | 1/1/2024 | 580 |
12/10/2023 | CCC | 2/1/2024 | 755 |
12/10/2023 | CCC | 3/1/2024 | 681 |
12/10/2023 | CCC | 4/1/2024 | 150 |
12/10/2023 | CCC | 5/1/2024 | 674 |
12/10/2023 | CCC | 6/1/2024 | 589 |
12/10/2023 | CCC | 7/1/2024 | 263 |
12/10/2023 | CCC | 8/1/2024 | 953 |
12/10/2023 | CCC | 9/1/2024 | 1015 |
12/10/2023 | CCC | 10/1/2024 | 1043 |
12/10/2023 | CCC | 11/1/2024 | 131 |
12/10/2023 | CCC | 12/1/2024 | 27 |
12/10/2023 | CCC | 1/1/2025 | 361 |
12/10/2023 | CCC | 2/1/2025 | 1051 |
1/15/2024 | AAA | 2/1/2024 | 99 |
1/15/2024 | AAA | 3/1/2024 | 772 |
1/15/2024 | AAA | 4/1/2024 | 465 |
1/15/2024 | AAA | 5/1/2024 | 133 |
1/15/2024 | AAA | 6/1/2024 | 97 |
1/15/2024 | AAA | 7/1/2024 | 384 |
1/15/2024 | AAA | 8/1/2024 | 982 |
1/15/2024 | AAA | 9/1/2024 | 527 |
1/15/2024 | AAA | 10/1/2024 | 268 |
1/15/2024 | AAA | 11/1/2024 | 812 |
1/15/2024 | AAA | 12/1/2024 | 55 |
1/15/2024 | AAA | 1/1/2025 | 189 |
1/15/2024 | AAA | 2/1/2025 | 601 |
1/15/2024 | BBB | 2/1/2024 | 94 |
1/15/2024 | BBB | 3/1/2024 | 757 |
1/15/2024 | BBB | 4/1/2024 | 40 |
1/15/2024 | BBB | 5/1/2024 | 481 |
1/15/2024 | BBB | 6/1/2024 | 248 |
1/15/2024 | BBB | 7/1/2024 | 790 |
1/15/2024 | BBB | 8/1/2024 | 1033 |
1/15/2024 | BBB | 9/1/2024 | 810 |
1/15/2024 | BBB | 10/1/2024 | 346 |
1/15/2024 | BBB | 11/1/2024 | 142 |
1/15/2024 | BBB | 12/1/2024 | 362 |
1/15/2024 | BBB | 1/1/2025 | 449 |
1/15/2024 | BBB | 2/1/2025 | 92 |
1/15/2024 | CCC | 3/1/2025 | 97 |
1/15/2024 | CCC | 2/1/2024 | 637 |
1/15/2024 | CCC | 3/1/2024 | 891 |
1/15/2024 | CCC | 4/1/2024 | 696 |
1/15/2024 | CCC | 5/1/2024 | 331 |
1/15/2024 | CCC | 6/1/2024 | 741 |
1/15/2024 | CCC | 7/1/2024 | 1032 |
1/15/2024 | CCC | 8/1/2024 | 1015 |
1/15/2024 | CCC | 9/1/2024 | 1072 |
1/15/2024 | CCC | 10/1/2024 | 152 |
1/15/2024 | CCC | 11/1/2024 | 633 |
1/15/2024 | CCC | 12/1/2024 | 549 |
1/15/2024 | CCC | 1/1/2025 | 629 |
1/15/2024 | CCC | 2/1/2025 | 604 |
1/15/2024 | CCC | 3/1/2025 | 312 |
2/15/2024 | AAA | 3/1/2024 | 151 |
2/15/2024 | AAA | 4/1/2024 | 541 |
2/15/2024 | AAA | 5/1/2024 | 414 |
2/15/2024 | AAA | 6/1/2024 | 446 |
2/15/2024 | AAA | 7/1/2024 | 546 |
2/15/2024 | AAA | 8/1/2024 | 885 |
2/15/2024 | AAA | 9/1/2024 | 108 |
2/15/2024 | AAA | 10/1/2024 | 854 |
2/15/2024 | AAA | 11/1/2024 | 1091 |
2/15/2024 | AAA | 12/1/2024 | 177 |
2/15/2024 | AAA | 1/1/2025 | 778 |
2/15/2024 | AAA | 2/1/2025 | 926 |
2/15/2024 | AAA | 3/1/2025 | 289 |
2/15/2024 | AAA | 4/1/2025 | 803 |
2/15/2024 | BBB | 3/1/2024 | 917 |
2/15/2024 | BBB | 4/1/2024 | 418 |
2/15/2024 | BBB | 5/1/2024 | 489 |
2/15/2024 | BBB | 6/1/2024 | 528 |
2/15/2024 | BBB | 7/1/2024 | 925 |
2/15/2024 | BBB | 8/1/2024 | 144 |
2/15/2024 | BBB | 9/1/2024 | 1011 |
2/15/2024 | BBB | 10/1/2024 | 552 |
2/15/2024 | BBB | 11/1/2024 | 663 |
2/15/2024 | BBB | 12/1/2024 | 79 |
2/15/2024 | BBB | 1/1/2025 | 10 |
2/15/2024 | BBB | 2/1/2025 | 863 |
2/15/2024 | BBB | 3/1/2025 | 909 |
2/15/2024 | BBB | 4/1/2025 | 1042 |
2/15/2024 | CCC | 3/1/2024 | 294 |
2/15/2024 | CCC | 4/1/2024 | 765 |
2/15/2024 | CCC | 5/1/2024 | 758 |
2/15/2024 | CCC | 6/1/2024 | 1059 |
2/15/2024 | CCC | 7/1/2024 | 1063 |
2/15/2024 | CCC | 8/1/2024 | 807 |
2/15/2024 | CCC | 9/1/2024 | 195 |
2/15/2024 | CCC | 10/1/2024 | 685 |
2/15/2024 | CCC | 11/1/2024 | 251 |
2/15/2024 | CCC | 12/1/2024 | 129 |
2/15/2024 | CCC | 1/1/2025 | 1024 |
2/15/2024 | CCC | 2/1/2025 | 615 |
2/15/2024 | CCC | 3/1/2025 | 76 |
2/15/2024 | CCC | 4/1/2025 | 773 |
2/15/2024 | CCC | 5/1/2025 | 415 |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
23 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
41 | |
32 | |
23 | |
22 | |
22 |