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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors