Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
RalphBi
Regular Visitor

Measure Filtering

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!

3 REPLIES 3
RalphBi
Regular Visitor

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:

 

2019-11-27_10h19_13.png

Closing Date:

 

2019-11-27_10h18_57.png

 

I am really new to this, appreciate the help. 

 

 

v-yuta-msft
Community Support
Community Support

@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.

parry2k
Super User
Super User

You can use calculate function,

Calculate ( your measure, table[month]=11)

Similar for other measure.


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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.