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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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