cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thhmez7
Helper III
Helper III

Show Values by Month_Year (Date) based on another date field

Hello,

 

I'd like to create a measure for Revenue that shows the value by a date field, based on another date field which I filter. 

Example: When I click on the date 17th March 2021 of modifiedon-date, the chart above should show the value of March 2021 by Est. close date.

 

thhmez7_0-1643653191814.png

Probably I have to use selectedvalue with modifiedon, but I'm not sure. Thank you in advance

1 ACCEPTED SOLUTION
thhmez7
Helper III
Helper III

ALready got the solution.

Inactive relationship between fields yearmonth

 

then create a measure like this:

Calculate( sum(revenue)

, field = Selectedvalue(field)

, userelationship('a'yearmonth, 'b'yearmonth))

View solution in original post

1 REPLY 1
thhmez7
Helper III
Helper III

ALready got the solution.

Inactive relationship between fields yearmonth

 

then create a measure like this:

Calculate( sum(revenue)

, field = Selectedvalue(field)

, userelationship('a'yearmonth, 'b'yearmonth))

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors