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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.