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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vjnvinod
Impactful Individual
Impactful Individual

Dax error

Hi Experts

 

see the below error I am getting, how do I modify this code?

 

vjnvinod_0-1635064972200.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @vjnvinod 

You can try this to see if it solves your problem.

3M Weightage filter =
CALCULATE (
    MAX ( 'People Flash Consolidated'[Month Rank] ) - 2
        && MAX ( 'People Flash Consolidated'[Weeknumber] )
)

vzhangti_0-1635238830967.png

If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?

Best Regards,

Community Support Team _ Charlotte 

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-zhangti
Community Support
Community Support

Hi, @vjnvinod 

You can try this to see if it solves your problem.

3M Weightage filter =
CALCULATE (
    MAX ( 'People Flash Consolidated'[Month Rank] ) - 2
        && MAX ( 'People Flash Consolidated'[Weeknumber] )
)

vzhangti_0-1635238830967.png

If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?

Best Regards,

Community Support Team _ Charlotte 

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

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @vjnvinod ,

 

just one & ?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.