Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I am fairly new to Power Bi and would appreciate any help with this 🙂
I currently want to filer information in a declared VAR with a measure value.
Here is my current measure which is simply a quick measure to calculate the difference between the two months:
Delta =
VAR __BASELINE_VALUE = [Month2 SLA%] *FILTER HERE BY MONTH 10*
VAR __VALUE_TO_COMPARE = [Month1 SLA%] *FILTER THIS VALUE BY MONTH 11*
RETURN
IF(
NOT ISBLANK(__VALUE_TO_COMPARE);
DIVIDE(__VALUE_TO_COMPARE - __BASELINE_VALUE; __BASELINE_VALUE)
)
Could this be done?
Thanks!
Thanks for the help guys, however the way I have it set up is I have a table with a Column named Closing Date from which [Month2 SLA%] AND [Month1 SLA%] is fed from.
These two ([Month2 SLA%]) are a division measure where i get the Percentage SLA.
My goal here would be being able to apply those filters like I can do visually two both values with different months for each.
By doing this I would like to achieve the difference between the two months.
Month SLA Measures:
Closing Date:
I am really new to this, appreciate the help.
@RalphBi ,
You may modify the measure using dax below:
Delta =
VAR __BASELINE_VALUE =
CALCULATE (
MAX ( Table[Month2 SLA%] );
FILTER ( Table; MONTH ( Table[Date] ) = 10 )
)
VAR __VALUE_TO_COMPARE =
CALCULATE (
MAX ( Table[Month2 SLA%] );
FILTER ( Table; MONTH ( Table[Date] ) = 11 )
)
RETURN
IF (
NOT ISBLANK ( __VALUE_TO_COMPARE );
DIVIDE ( __VALUE_TO_COMPARE - __BASELINE_VALUE; __BASELINE_VALUE )
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |