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
Anonymous
Not applicable

DAX error "The end of the entry has been reached" / "Het einde van de invoer is bereikt"

Hello,

 

I am trying to find the latest id with the same key (sleutel)

Where did I go wrong

 

--------

IsLaatstVeranderdDateByID = Distinct(Rule_Result_Rowwise[ID]) =
CALCULATE(
MAX(Rule_Result_Rowwise[ID];
FILTER(ALL(Rule_Result_Rowwise); Rule_Result_Rowwise[SLEUTEL] = EARLIER(Rule_Result_Rowwise[SLEUTEL]))))
-------
Sleutel = Rule_Result_Rowwise[PK_VALUE]&Rule_Result_Rowwise[ERROR_COLUMN_NAME]&Rule_Result_Rowwise[ERROR_COLUMN_VALUE]
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a column to calculate the last id for each key, then create a measure to compare with last id and the id,

 

last id column = CALCULATE(MAX('Table'[id]),FILTER('Table','Table'[Sleutel]=EARLIER('Table'[Sleutel])))

measure
true/false = MAX([id])=MAX([last id column])

 

or creatCapture3.JPG

or create measures
distinctount per sleutel = CALCULATE(DISTINCTCOUNT('Table'[id]),ALLEXCEPT('Table','Table'[Sleutel]))
 
ture/false 2 = MAX([last id column])=[distinctount per sleutel]
 
Capture4.JPG
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a column to calculate the last id for each key, then create a measure to compare with last id and the id,

 

last id column = CALCULATE(MAX('Table'[id]),FILTER('Table','Table'[Sleutel]=EARLIER('Table'[Sleutel])))

measure
true/false = MAX([id])=MAX([last id column])

 

or creatCapture3.JPG

or create measures
distinctount per sleutel = CALCULATE(DISTINCTCOUNT('Table'[id]),ALLEXCEPT('Table','Table'[Sleutel]))
 
ture/false 2 = MAX([last id column])=[distinctount per sleutel]
 
Capture4.JPG
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous, 

 

could you explain what you are trying to do? Is IsLaatstVeranderdDateByID a column or a measure? This part of your code: Distinct(Rule_Result_Rowwise[ID]) = CALCULATE(..., do you want to return true/false?

 

Cheers,
Sturla

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.