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
Hello everyone,
Solved! Go to Solution.
Hi @abiyevnijat ,
For this you need to use a different measure. Try the following measure:
Business Time % =
VAR temptable =
ADDCOLUMNS (
'Dashboard',
"@BusinessTime%",
IF (
'Dashboard'[Business] < SELECTEDVALUE ( 'Slicer'[Slicer] ),
1,
SELECTEDVALUE ( Slicer[Slicer] ) / 'Dashboard'[Business]
)
)
RETURN
AVERAGEX ( temptable, [@BusinessTime%] )
See PBIX file attach.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @abiyevnijat ,
You need to create a new measure to use on your visualizations, you cannot update values on a table using a slicer.
So in this case the Business Time % needs to be a measure also and not a calculated column on your model, that way you get the expected result that is dynamic based on the what if parameter measure.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks again for your response. I created parameter which values between 1 from 48. Then I create measure
Business Time % = IF ( 'Dashboard'[Business] < SELECTEDVALUE('Slicer'[Value]), 1, SELECTEDVALUE('Slicer'[Value]) / 'Dashboard'[Business] )
In this measure my Business values is a column in my Dashboard table and I cant result Business Time % like that. Is there any method to find Business Time %, with different code or something which I can show average Business Time % in card visual, when I change my values in slicer when add parameter
Hi @abiyevnijat ,
For this you need to use a different measure. Try the following measure:
Business Time % =
VAR temptable =
ADDCOLUMNS (
'Dashboard',
"@BusinessTime%",
IF (
'Dashboard'[Business] < SELECTEDVALUE ( 'Slicer'[Slicer] ),
1,
SELECTEDVALUE ( Slicer[Slicer] ) / 'Dashboard'[Business]
)
)
RETURN
AVERAGEX ( temptable, [@BusinessTime%] )
See PBIX file attach.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIt is completely what I want. Big thanks for you
To achieve the desired result of dynamically calculating the Business Time % based on the selected value from a slicer dropdown visual, you can follow these steps:
Create a new measure in your main table (Dashboard) using the following formula:
Business Time % =
IF ( 'Dashboard'[Business] < SELECTEDVALUE('Slicer'[Value]), 1, SELECTEDVALUE('Slicer'[Value]) / 'Dashboard'[Business] )
Create a new table (Slicer) with a single column (Value) containing values from 1 to 48.
Add a slicer visual to your report using the ‘Value’ column from the ‘Slicer’ table.
Selecting a value from the slicer will dynamically update the ‘Business Time %’ measure based on the selected value and the corresponding value in the ‘Business’ column of your main table.
If you find this insightful, please provide a Kudo and accept this as a solution.
Thanks for answer. But, I want my Business Time % not in measure. I want to see my values in all rows in Business Time % according to Business Column. For example, when I select 4 in dropdown which is my SLA Time, I want to see in
Hi @abiyevnijat ,
For this you need to use a What If parameter.
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
This will allow to have a slicer where you select the SLA time and use the metric on your calculations.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks for quick response. I visited this link, but I cant get suitable information for my problems. I create parameter table and added to slicer,but I cant get wanted result. All rows in my column display null when I change slicer.
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 |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |