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
Anonymous
Not applicable

Filtering down a graph based on a selection

Hello all.

 

I am new to PBI and I am trying to filter the graph marked with the arrow based on the selection highlighted in the image bellow

BERMAC_1-1679341683551.png

 

I have developed two measures that clearly are wrong (same logic so I only posted one) and I am getting the folowing warning: 😅

BERMAC_2-1679341761044.png

 

How can I correct the measure? I want to sum the total hours that are posted in the days that are between the time range based on the Sprint number of the selection.

 

I have a Date table with all dates, connected to the Posting Date and both the Iteration Started and Finish Dates. An example of the tables is bellow to help to understand the model.

 

Devops table:

BERMAC_3-1679342090556.png

 

Nav Total table:

BERMAC_4-1679342176517.png

 

Thanks in advance!

3 REPLIES 3
lbendlin
Super User
Super User

Don't use SELECTEDVALUE inside CALCULATE (read about filter context, and context transition).  Use variables.

Anonymous
Not applicable

Hello, thank you for the ideas. Can you help me write a Dax measure with those? I have started something like this:

BERMAC_0-1679483824919.png

Thank you!

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.