March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
All the data, calcs and visuals described below are in the pbix file linked here
I have two assets. Each has some attributes then a year it will reach a certain condition grade
I've used union and summarize to restructure this data and display the deterioration over time on a line chart
Up to this stage all the data is columns loaded in Power Query
A user is able to spend a % of money at Condition Grade 3 and 4 to slow the asset deterioration down. I've added 2 parameters and sliders for the user to do this
The following is all achieved through measures
The % spend selected is turned into an adjustment %
Which is used to adjust the CG3, 4 and 5 intervals
I'm unable to do the create a summarize table on these measures - the new table just gives a single value for all assets
I tried another approach of using the first summarize table and modifiying this. I offset the date, calcuate the change, calculate the adjustment, then bring this all together for the new date
The Adjusted Date works and is correct but as a measure I can't use it as the axis of the line chart
Any ideas how I can make this dynamic but at the same time use the results in charts and further calculations?
Thank you in advance
Solved! Go to Solution.
Here is my proposal. There is one potentially big compromise - you cannot have a measure as the x-axis of a standard line chart, so I had to rotate the chart by 90 degrees.
see attached.
"I'm unable to do the create a summarize table on these measures - the new table just gives a single value for all assets"
You cannot measure a measure. To get your result you need to create an independent measure that looks at the data from the perspective of the grand total, not from the perspective of the individual value. Often that includes using one of the X functions. Can you formulate the expected outcome?
Thanks for the reponse and apologies for the delay in responding. I've tried to develop what i'm trying to do but also simplify the issue i'm having
Here is my table of information
As a brief overview of the data,
The first 15 columns (AssetID to CG 5 Baseline) are fed from excel sheets and so are constructed in Power Query
I'm using a summarize to create a new table which I can graph
The remaining 7 columns (CG3 Adjusted Spend % to CG 5 Adjusted) are measures all calculating from parameter sliders
Turning the parameter into a %
Is there any way I can get the measure generated numbers onto the same graph as the power query generated numbers?
oops - where did the Power Query comment come from all of a sudden?
And no, you cannot mix measures and columns in the values area that way. It has to be turtles measures all the way down. As you can see in your current version the chart is not impacted by the What-If parameters at all.
I'll try working on a measure based version but it may take a while.
Perfect - thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |