cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Tamir Member
Member

Annual reported Salaries vs Monthly reported Bonuses

Hello,

1. Salaries are reported annually. However, they can change each month.


2. Bonuses are paid irregularly over different months.


I am trying to achieve:
Show in the table "Yearly Salary Vs Bonus" the correct results for Salary and Bonus while selecting a specific Month. OR if Selecting a YEAR from the year slicer, I would like the Salary of DEC of that year.
Please see link for the file.
https://basintamir-my.sharepoint.com/:u:/g/personal/tamir_tamirbasin_com/EbeTLvJsTwJGpYaV4f-6m44BbHN...

Thank you

Tamir

1 REPLY 1
Community Support Team
Community Support Team

Re: Annual reported Salaries vs Monthly reported Bonuses

Hi @Tamir,

 

You could create a measure below to meet your requirement.

 

Annual_Salary =
IF (
    ISFILTERED ( dimCalendar[MonthYear] ),
    MAX ( 'factsSallaries'[Annual Salary] ),
    CALCULATE (
        SUM ( factsSallaries[Annual Salary] ),
        FILTER (
            'factsSallaries',
            'factsSallaries'[Date] = ENDOFYEAR ( 'factsSallaries'[Date] )
        )
    )
)

The picture of result is below.

Picture_1 --no filter

Capture.PNG

 

Picture _2--by selecting the specific month

 

Capture1.PNG

 

 

Additionally, you could refer to the PBIX file here.

 

Hope it can help you!

 

Best regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors