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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ambillate
Frequent Visitor

Measure

Hi Guys,

 

Humbly asking for your help.

 

My current Matrix is like this:

ambillate_0-1615802440253.png

 

Using this measure:
Section = SWITCH(SELECTEDVALUE(Level[Level#]),
1,[Percentage],
2, 0,
3, 0,1)

 

As expected, the resulting output Is this:

ambillate_1-1615802557250.png

 

Is there a measure,

where only in Level 1 is 100%

and the rest (Level 2 and 3) is 0%.

 

Like this:

ambillate_2-1615802654348.png

 

 

Thank You

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ambillate , Try a measure like one of the two

 

Section =
var _1 = SWITCH(SELECTEDVALUE(Level[Level#]),
1,[Percentage],
2, 0,
3, 0,1)
return if(isblank(_1),1,_1)


Section =
var _1 = SWITCH(SELECTEDVALUE(Level[Level#]),
1,[Percentage],
2, 0,
3, 0,1)
return if(isblank(_1),if(max(Table[Lavel]) = 1,1,0),_1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@ambillate , Try a measure like one of the two

 

Section =
var _1 = SWITCH(SELECTEDVALUE(Level[Level#]),
1,[Percentage],
2, 0,
3, 0,1)
return if(isblank(_1),1,_1)


Section =
var _1 = SWITCH(SELECTEDVALUE(Level[Level#]),
1,[Percentage],
2, 0,
3, 0,1)
return if(isblank(_1),if(max(Table[Lavel]) = 1,1,0),_1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
ambillate
Frequent Visitor

Hi @amitchandak,

 

I tried the two measures, but it gives me this result.

ambillate_0-1615868549654.png

 

In Level 2 & 3 (column C), it's still 100%.

@ambillate ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
ambillate
Frequent Visitor

@amitchandak 

 

Uhm, I think I still don't have permission to upload pbix file here:

 

Please see sample data:

 

Table1:

 

ambillate_2-1615876185066.png

 

Table2:

ambillate_3-1615876265564.png

 

 

 

 

ambillate_1-1615876033745.png

 

 

Thanks for your help

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (25)