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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Comparison with SIblings

Hi,

 

Need your help in solving which looks like a simple problem.

 

I have below dataset

 

CityStore Revenue
LondonL-Store 1100
LondonL-Store 2150
SydneyS-Store 1190
SydneyS-Store 275
SydneyS-Store 390
ChicagoC-Store 1300
ChicagoC-Store 2500

 

Store will go in a Slicer . When a User selects a Store from the slicer, its peers within the same city along with the Revenue should appear in a table.

 

For Example if I select S-Store 2, output should be

 

S-Store 1190
S-Store 275
S-Store 390

 

and if possible S-Store2 highlighted.

 

Thanks.

1 ACCEPTED SOLUTION

@Anonymous

 

File attached as well

 

 


Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try this technique

 

First create a calculated table..From Modelling Tab>>New Table

This will serve as store slicer

 

StoreSlicer =
VALUES ( Table1[Store ] )

Now create this MEASURE

 

Measure =
VAR StoreSelected =
    SELECTEDVALUE ( 'StoreSlicer'[Store ] )
RETURN
    CALCULATE ( MIN ( Table1[City] ), Table1[Store ] = StoreSelected )

Not put this MEASURE in VISUAL Filter and select ISNOTBLANK

 

sib.png

 

 


Regards
Zubair

Please try my custom visuals

@Anonymous

 

File attached as well

 

 


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thanks Zubair for your help.

 

Would it be possible to do without a calculated table, on the original table.

As every new table in the model would require the relationships to be build. 

HI @Anonymous

 

I think it is not possible because a slicer from the same table will filter the values selected.

 

But may be there is a way I am not aware of.

 

Nevertheless, you do not need to establish relationship between calculated table and your datamodel.

In my example, i did not create any relationship


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Hi Zubair,

 

I did notice that there was no relationship between tables.

 

However that Store filter is a global filter , filtering other visuals as well on the report. It wont be possible to add another Slicer coming from calculated table

 

Thankg again for your help.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.