Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
I managed to find my own solution. Here is my solution. I had to display 48 different calculated measures in separate visuals. My first attempt was to create all of the measures in my primary table. When I would run the reports (visuals on the dashboard), it took a little bit to display all 48. This was not going to sit well with the client if they had to wait for all of calculation to generate to display the visuals.
I tried to create a separate table to hold all of my measures. That way, I would be able to reference the column for the visual and the "on the fly" calculation process would be eliminated. My mistake was to create the table and try to add a custom column through the Power Query editor. When I added my script that had several filters in a IF statement, the process did not like the && symbol.
The solution for me was to create the table in the "Relationship" section with one column callled "Type" and and entered the value "Results". Then, I went back to the "Report" section. On the right hand side, the tables and fields are displayed. In my new table, I added a new column with the script that would generate my desired value. This script was written to reference values in the primary table.
I added some new visuals (card, pie chart, donut chart or gauge) and referenced the new columns from my new table. This process solved my speed issue as the visuals displayed immediately instead of waiting for the measures to calcuate the results and display them each time the user displays that page of visuals.
I managed to find my own solution. Here is my solution. I had to display 48 different calculated measures in separate visuals. My first attempt was to create all of the measures in my primary table. When I would run the reports (visuals on the dashboard), it took a little bit to display all 48. This was not going to sit well with the client if they had to wait for all of calculation to generate to display the visuals.
I tried to create a separate table to hold all of my measures. That way, I would be able to reference the column for the visual and the "on the fly" calculation process would be eliminated. My mistake was to create the table and try to add a custom column through the Power Query editor. When I added my script that had several filters in a IF statement, the process did not like the && symbol.
The solution for me was to create the table in the "Relationship" section with one column callled "Type" and and entered the value "Results". Then, I went back to the "Report" section. On the right hand side, the tables and fields are displayed. In my new table, I added a new column with the script that would generate my desired value. This script was written to reference values in the primary table.
I added some new visuals (card, pie chart, donut chart or gauge) and referenced the new columns from my new table. This process solved my speed issue as the visuals displayed immediately instead of waiting for the measures to calcuate the results and display them each time the user displays that page of visuals.
Thanks Maggie for your response. I see that running all of the measures to populate individual visuals would slow down the process as they are trolling through the whole table for each calculation.
My question is, how to create a second table with one row and multiple columns that would contain the results of each calculation.
This way the new second table would be updated each time the data is refreshed.
Once that second table exists I could reference a specific column for a specific card visual. That way, the display process does not have to wait on the calculation process to display the result. It will already exist in the second table.
I am at a lost on how to create such a table especially since it will be reference the original table for the data to obtain percentage from the calculation. When I do try to create a table with a custom field and add in the calculation, it seems that it does not like the double ampersand symbol (&& - and) in the script.
I am trying to figure out how to create that second table or is there another practice that would work better.
This is an example of the card visuals I am trying to use.
Hi @cs_astron
When you use DAX function to select each row which meets each condition, it would interate each row of the table.
So it would be slow when you create multiple measures and show them on the card.
I would suggest you to add condition in the Visual level filter for each visual.
Best Regards
Maggie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |