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
u92690
Frequent Visitor

Measure with multiple slicers applying (Beginner level) - example posted

Hey Friends,

 

I have a quiet simple issue, I guess, but im not getting to sort it out. I have two tabels, one with the cases and the other one with the tests, all of them broken down by administrative territory levels (Level 2 have several Level 3, but also several L2 can have just one Level 3) and data. I have created the measure cases/test, and i would like to get it calculated for the exact combinations of territory levels I select. However, I dont know how to do it for all the levels at the same time. Please, find below the example in which you'll see it so clearly.

 

PIBX -> https://drive.google.com/file/d/1ky3lIS8gjImwT5O4GJh3bheYkSMnMy5C/view?usp=sharing 

Tables -> https://drive.google.com/file/d/1bKvRqhEv664ptYtmq3f6wPCfgpiCcqmG/view?usp=sharing

 

Thanks!

 

@Ashish_Mathur 

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @u92690 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @u92690 ,

 

Sorry for that the information you have provided is not making the problem clear to me.

Could you please tell me the expected output via some screenshots?

By the way, I have created a new table in case you want to split the level type:

Table = 
    var _1=DISTINCT( SELECTCOLUMNS('Territories',"Type",LEFT([Region - Level 1],2),"Level",RIGHT([Region - Level 1],1)))
    var _2=DISTINCT( SELECTCOLUMNS('Territories',"Type",LEFT([Region - Level 2],2),"Level",RIGHT([Region - Level 2],1)))
    var _3=DISTINCT( SELECTCOLUMNS('Territories',"Type",LEFT([Region - Level 3],2),"Level",RIGHT([Region - Level 3],1)))
return DISTINCT(UNION(_1,_2,_3))

level type.PNG

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

In the Cases table, you should select Date and Cases and "Unpivot all other columns" - this will leave you with 3 columns.  Do the same for the Tests table as well.  The territories table should also just have one column.  Build relationships from the Attribute column of Cases and Tests table to the Territories table. 


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

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.