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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.