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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

DAX optimization with what-if parameters

Hello,

 

I put together a proof of concept dashboard that takes into account numerous user inputs.  THe functionality works great, however the performance is terrible. My Tables take a long time to refresh with the user input data (what-if parameters).

 

 

 

Revenue_User_Input = 
    IFERROR(
        SUMX(
        DISTINCT('New Allocation'[Product]),
            SWITCH([Product],
                "Product1", ([Revenue] * [% Product1 Allocation Value]),
                "Product2", ([Revenue] * [% Product2 Allocation Value]),
                "Product3", ([Revenue] * [% Product3 Allocation Value]),
                "Product4", ([Revenue] * [% Product4 Allocation Value]),
                "Product5", ([Revenue] * [% Product5 Allocation Value]),
                "Product6", ([Revenue] * [% Product6 Allocation Value])
    )),0)

 

 

New Allocation[Product] is a measure that refers to the calculated table I used to pull the specific products I needed.  I did this so that I could add in a total column (used elsewhere) and an additional product that is not yet in my base data (new product will be launched in the future).

 

New Allocation = VALUES('Product Reference'[Product])

Product Reference = 
UNION( 
    VALUES('Base Table'[Product]), 
    ROW("Column1"," Total"), 
    ROW("Column1","Product6")
)

 

 

Have tried a few ways of working around this, but they all have similar performance issues.

 

Any help is greatly appreciated!

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive for Business and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.