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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
vquentin
Frequent Visitor

Unexpected behavior where formula result depends on whole column values but should be independent

Hello everyone,

 

I have a table where I calculate values from the tables in my model and values in the first column of my table. The first column of my table is generated with GENERATESERIES(start, stop, step).

I have wrestled for a few days with discrepancies between the values generated by the function and expected values. The result depend on the span of the range I generate with GENERATESERIES. For instance, looking at the row with a value of 2042, the result is different when the range is generated with either GENERATESERIES(2041.8, 2042.5, 0.1) or GENERATESERIES(2041.9, 2042.5, 0.1). In this case, the expected value is the right one in the second case.

 

Also, the behavior is the same when:

  • the series is generated with GENERATESERIES or using List.Generate in a Power Query.
  • the count is done with a measure or a calculated table or a calculated column

 

What am I missing?

 

Thank you !

 

Screenshot 2022-04-26 223512.pngScreenshot 2022-04-26 223415.png

2 REPLIES 2
SpartaBI
Community Champion
Community Champion

@vquentinstrange!

btw I see you are using <= and >=.

I would expect to see in these kind of calculations the = sign only in one of them. 

I can't see how it is related to your issue but maybe black magic 🙂

I have tried with <= and > instead. Same problem 🙁

But thank you for trying !

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.