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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ggatza123
Regular Visitor

Summarize (error data point); Grouping

Hi All,

 

New to the Power BI world; I've lived in Excel but am learning of the great ways these two programs can compliment each other.

 

I have an issue with my data, here is an example:

 

Order NumberOrder LineAmountQuantityDatePartRepresentative
6450110055/1/2018123456789 B 
64501-5055/1/2018123456789 BABC
64501-5055/1/2018123456789 BDEF
645015055/1/2018123456789 BDEF

 

Desired result:

 

Order NumberOrder LineAmountQuantityDatePartRepresentative
645015055/1/2018123456789 BDEF

 

 

The issue is how the data is written at the source and how the source treats modifications to the data.  The "Representative" is always the last representative that is listed in the data.  Meaning if a line on an order is 143 rows long, the 143rd row is the defining datapoint.

 

When I create reports (by Representative) I want to make sure the whole order is represented on a specific representative.

 

I've looked into creating a column with logic, using the "Last" function within the data point on the report, or dabbled into Grouping under the Edit Query module.

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Add an Index column to your import query. Then you can always use the MAX of that to determine the row that you want.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

Add an Index column to your import query. Then you can always use the MAX of that to determine the row that you want.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.