Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
Please can you tell me if it's possible to calculate a temporary table in a measure, and then share that table with other measures (without it having to be calculated each time).
I have 8 columns that all need to calculate the same temporary table and it's taking 50 seconds to run, so I was thinking if the table can be shared that could reduce to about 6 seconds?
Thank you,
CW
Solved! Go to Solution.
The answer is No and Yes
No ... you can not crate a measure in one measure and use it in another. ☹️☹️
But ... yes ... I have a solution to your 50 second problem 😀😀
Click here to download the solution
How it works ...
First use Enter Data to manaully create a driver table with the names of your 8 meaures
For example her are 6 ...
Then create a DAX measure which uses VAR to build your temp table once.
Note it is much faster to aggergate using ADDCOLUMNS rather that SUMMARIZE
Then use SWITCH to reuse the temp table 8 times.
For example this DAX meassure creates salesbycountry temp table.
Then uses salesbycountry to create lossbycountry and profitbycountry temp tables.
Then uses SWITCH to create 6 measure.
This method can easily reduce 90 seconds masures to under 5 seconds.
Please let me know how you get on.
Thanks for reaching out for help.
I put in a lot of effort to help you, now please quickly help me by giving kudos.
Remember we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button.
If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime. I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !
The answer is No and Yes
No ... you can not crate a measure in one measure and use it in another. ☹️☹️
But ... yes ... I have a solution to your 50 second problem 😀😀
Click here to download the solution
How it works ...
First use Enter Data to manaully create a driver table with the names of your 8 meaures
For example her are 6 ...
Then create a DAX measure which uses VAR to build your temp table once.
Note it is much faster to aggergate using ADDCOLUMNS rather that SUMMARIZE
Then use SWITCH to reuse the temp table 8 times.
For example this DAX meassure creates salesbycountry temp table.
Then uses salesbycountry to create lossbycountry and profitbycountry temp tables.
Then uses SWITCH to create 6 measure.
This method can easily reduce 90 seconds masures to under 5 seconds.
Please let me know how you get on.
Thanks for reaching out for help.
I put in a lot of effort to help you, now please quickly help me by giving kudos.
Remember we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button.
If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime. I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !
@PowerWhy Unfortunately measures cannot return tables. I would love that feature. You might be able to increase performance using "horizontal fusion" preview feature in October release. Yet another super useful but forgotten idea: