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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.