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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DavidProfi
New Member

DAX is returning incorrect values.

Hello!
The following problem:
I'm trying to compare a larger set (17) ('Vergleich Styp' [22026]) with one number ('voest' [22026]) using this DAX expression (linked with [Stahltypen]).

Screenshot 2023-11-29 071223.png

 

The first part determine the count of values smaller than 'voest' [22026], and in the second part, determine the count of values greater than 'voest' [22026], in order to calculate the average.
Except for the last line, the rest is NOT correct; the last line is correct.

What is the reason for this, and why are the other values all periodic?

DavidProfi_0-1701238497840.png

It's also correct that there are no values in 2023 and 2024

Thank you in advance.

1 REPLY 1
Anonymous
Not applicable

Hi @DavidProfi ,

Can you provide some sample data and your desired output? It's hard to tell what the problem is with the DAX alone.
You can try modifying this place first:

vjunyantmsft_0-1701408406762.png

DAX is modified as follows:

ALL('Vergleich Styp')

If this is incorrect, please also provide sample data or a pbix file and remember to provide the correct result you want!

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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