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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JennaExe79
Regular Visitor

Help with a measure needed

I've been trying to use ChatGPT to work out how to do what I'm trying to do, but have failed so far, so are hoping you can help!

 

I have a table in my data, called D_Forces. It has just two columns. The first is Force and there are 44 rows. The second is Region. Each Force belongs to one of 13 Regions (apart from the National Total which has no region assigned to it).

 

What I want to be able to do is have a single slicer on a page where the user selects the Force. Most visuals on the page will filter to show data for that single force. However, I also want some graphs (e.g. line graphs) to show the trend for all the forces within the same region.

 

So I need a measure which will tell the graph which forces it needs to show (the ones with the same region as the selected force on the slicer).

 

Can anyone suggest how to do this? The ChatGPT suggestions are either throwing up errors within the formula or are not producing the desired result.

 

Thsnks in advance!

6 REPLIES 6
Anonymous
Not applicable

Hi @JennaExe79 ,

 


Did Ashish_Mathur reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.

 

Best regards,

Adamk Kong

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I definitely think this is very similar to what I'm trying to achieve, thank you - are you able to help me understand how to map this across to my data to work for me?

 

In my data, the Force name column is the equivalent of your Unique ID, because each name is different, and that is what I want to display in my slicer for people to select from. The Model column is the equivalent of my Region column. So when a user selects the Force name (unique ID), I want it to display all the Force names (Unique IDs) from the same Region (Model). I don't think I have an equivalent of your Location column, because the Force name is the Location too...

 

Also, I don't know if it's relevant, but I have multiple datasets in my report which all have the Force/Region columns within them, so I'm hoping the solution is one that uses my D_Forces table which is linked to all the other datasets, so I only have to set up the measures once and they can be applied to everything?

 

Any further help would be greatly appreciated, thank you!

 

 

Hi,

After studying my solution, please try to solve it on your own.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Not a particularly helpful response as if I could solve it myself I wouldn't be on here asking for help!

 

I have managed to recreate what you've done in my own data, but I had to add an additional table for the unique ID, and add a unique ID column to my D_Forces table. 

While the table then filters just like yours does on a separate page, I don't think this solution translates into the report I've already built as none of that uses the new Unique ID table/colums I had to add to replicate your solution.

 

If anyone knows how I can achieve the same result using my existing tables/fields so that it works with my existing report, that would be amazing.

DataInsights
Super User
Super User

@JennaExe79,

 

Try a measure like this, where Base Measure is the underlying measure that aggregates a column:

 

Region Measure =
CALCULATE (
    [Base Measure],
    ALL ( D_Forces[Force] ),
    VALUES ( D_Forces[Region] )
)




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

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors