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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.