Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have been plagued by the infamous incorrect measure total problem, however, this time I can not find a way to resolve it. Below is a picture of the table, and then the measure formulas:
ItemDesc | Invoiced Qty | Invoiced Qty (Incorrect Site) | Invoiced Rank Incorrect | TOPN Incorrect Qty Switch | NEW Incorrect Invoiced Qty |
MJ,ACC,BAG,6,TRANSITION,3/4X31/2,L/GLD | 761 | 745 | 20 | 761 | 761 |
BEND,12,MJ,45,C153,CL | 1721 | 736 | 21 | 1721 | 1721 |
BEND,6,MJ,90,C153,CL | 1171 | 731 | 22 | 1171 | 1171 |
GLAND,6,MJ,C153,TC | 1330 | 705 | 23 | 1330 | 1330 |
FLANGE,COMP,4,C110,FOR,DI,BARE-ND | 640 | 640 | 24 | 640 | 640 |
BOX,VALVE,6850,562S,GI,ASSY,16T,24B | 731 | 638 | 25 | 731 | 731 |
MJ,ACC,PACK,8,C153 | 1304 | 633 | 26 | 633 | 1304 |
BEND,12,MJ,45,C153,CL-ND | 2560 | 623 | 27 | 623 | 2560 |
MJ,ACC,PACK,16,LESS,GLAND,3/4X41/2,B/N | 972 | 596 | 28 | 596 | 972 |
MJ,ACC,PACK,12,LESS,GLAND,3/4X4,B/N | 1275 | 554 | 29 | 554 | 1275 |
MJ,ACC,PACK,6,C153 | 1063 | 532 | 30 | 532 | 1063 |
[Invoiced Qty] = Sum(InvoicedQuantity)
What I am trying to do, is rank the [Invoiced Qty (Incorrect Site)] ascending. Then, use the [TOPN Incorrect Qty Switch] to look at the top 25 items, and return the [Invoiced Qty], and return the [Invoiced Qty (Incorrect Site)] value for any rank > 25, with the correct summation.
Currently, the [TOPN Incorrect Qty Switch] has the correct values, but incorrect total, and the [New Incorrect Invoiced Qty] has the incorrect values (all showing [Invoiced Qty]), but the correct sum (this measure was created to try and get the [TOPN Incorrect Qty Switch] to sum correctly).
Note: The [ItemDesc] are in a separate table, related to the current table by Dim_Keys
Note: The yellow line in the picture is the 25th ranked item, and where the result measure should switch columns from [Invoiced Qty] to [Invoiced Qty (Incorrect Site)]
Please help! I have exhausted all option.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |