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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Analitika
Post Prodigy
Post Prodigy

How get value after selecting one visual?

Hello,

 

I need to extract and store value in measure and use it for further calculations. That value appears when I press on visual B, and it filters visual A, so I need value from visual A which appears after selecting visual B. How to implement this? I tried use selectedmeasure function in dax but not helped.

5 REPLIES 5
MFelix
Super User
Super User

Hi @Analitika ,

 

This depens on how you model is created and on how the values from the two visuals you have selected and how they interact.

 

Can you givce a little more context on the result you want to achieve and the way the model and visuals are setup?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Here is scenario, click on the one visual, filtering another 

Analitika_0-1701153668677.png

Before selecting:

Analitika_1-1701153700765.png

So I need find percentage, like for example, 4245/10625*100.  Is possible?

Hi @Analitika ,

 

You need to create something similar to:

% measure = DIVIDE( [Measure], CALCULATE([Measure], ALLSELECTED(Table[Column]))

 

The column you should refer is the  one that you use for the intervals.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



I have tried this but it calculates of grand total not total per range. So it is wrong. I need percentage

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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