Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Dears,
the below highlited calcoulation takes long time to proceed the result in Power BI disktop around 8-10 min
but when i publish the pbix to the Pro user on servier
it show me the below screen shot
So my Question is
1- how to speed up the calcoulation proccess of measurement?
2- How to solve the time out issue in server?
Solved! Go to Solution.
@WaelTalaat79 change your measure to this:
YTD Prog. Rebates Value =
VAR _Yearly_Purchases_Value = [Yearly Purchases Value]
VAR _slab = [Slab-#]
VAR _result =
SWITCH(
_slab,
0, 0,
1, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 1] ),
2, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 2] ),
3, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 3] ),
4, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 4] ),
5, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 5] ),
6, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 6] )
) * _Yearly_Purchases_Value
RETURN
_result
My Savior 😍
it just 5 seound "OMG , love you man"
ok that is encourge me to ask for mor 2 measure related
i need to get the monthly impacy by sbtruct the current month value - previous month
but when i do it the calcoulation consider the previous month od Jan is DEC. with value but dec. should be zero
@WaelTalaat79 you can't do anything regarding 2 (maybe if you upgrade to PPU but not sure it will give you more resources). You basically need to work on 1 🙂 A measure should take no more than 1/2 seconds, definitely not 8-10 minutes.
Share the code you wrote.
@WaelTalaat79 change your measure to this:
YTD Prog. Rebates Value =
VAR _Yearly_Purchases_Value = [Yearly Purchases Value]
VAR _slab = [Slab-#]
VAR _result =
SWITCH(
_slab,
0, 0,
1, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 1] ),
2, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 2] ),
3, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 3] ),
4, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 4] ),
5, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 5] ),
6, SUM ( '2022 P-Rebates Slab Condition %'[Slab % 6] )
) * _Yearly_Purchases_Value
RETURN
_result
My Savior 😍
it just 5 seound "OMG , love you man"
ok that is encourge me to ask for mor 2 measure related
i need to get the monthly impacy by sbtruct the current month value - previous month
but when i do it the calcoulation consider the previous month od Jan is DEC. with value but dec. should be zero
@WaelTalaat79 my pleasure my friend 🙂
For community visabilty better to open a new thread per question, so open a new one and I'll try to get to it. Need to leave PC for now
And hey, check out my showcase report:
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.