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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RMDSPC
Frequent Visitor

Capturing a SELECTEDVALUE measure in a matrix without iterating through all data

Hi all, I have an interesting question here regarding measure behavior. I have a matrix of data (parent sites with child sites), which works fine (redacted below).

RMDSPC_0-1686077405595.png

This data gets exported to Power Automate via a button, where it's turned into an array, etc.

 

As part of this export, I need to capture the selected Year and Quarter from our date table. Those need to be measures, of course. However, adding a SELECTEDVALUE(Year) and SELECTEDVALUE(Quarter) to the table results in the following, where every parent is now associated with every child.

RMDSPC_1-1686077607444.png

I believe this is expected measure behavior. I could filter out the blanks via a visual-level filter, which would solve the display issue. However, the raw underlying data (including all the blanks, etc.) is captured in the Power Automate export, which causes data volume issues and dropped records.

 

Is there a way to prevent this?

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Adding these measures to the table visual is not relevant. The Power Automate visual has its own filter context. In that filter context SELECTEDVALUE(Year) may be meaningless or blank.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Adding these measures to the table visual is not relevant. The Power Automate visual has its own filter context. In that filter context SELECTEDVALUE(Year) may be meaningless or blank.

Hi @lbendlin - correct, the question was because adding filters to the Power Automate visual didn't seem to be working, but I tried again and it went through this time. Didn't change anything, but it's working now. Marking this as accepted in case others have the same question

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.