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! Request now

Reply
Hassa0213
Frequent Visitor

Please correct this measure used in matrix to remove showing data at drill up level

Hi,

I created 3 measures for ID, Date and Innovation Stage columns in my data table(Company_table) and the matrix visual is as shown below.

Hassa0213_0-1667661639039.png

The columns used for rows in matrix visual as below.

Hassa0213_3-1667662621492.png

 

* The first requirement is to show the highest Innovation stage(Innov_m) and highest date(Date_m) when drill up to company level and its working as shown below.

Hassa0213_1-1667661838454.png

 

* Second requirement is I dont want to display the Innovation Stage(Innov_m) and date(Date_m) when drill up to Region Level but its displaying at region level as well as shown below.

Hassa0213_2-1667662014453.png

The requirement is to show the highest Innovation stage and highest date only when its drill up to company level.

The 2 measures I used for the above matrix is as below, please help to correct the logic to get the desired output or let me know any other ideas. Thanks

 

Innov_m =
var stage_s = CALCULATE(MAX(Company_table[Inovation Stage]), ALLEXCEPT(Company_table,Company_table[Subject], Company_table[Company Name]))
 
return CALCULATE(MAX(Company_table[Inovation Stage]),FILTER(Company_table, (Company_table[Inovation Stage])= stage_s))
 ----------------------------------------------------------------------------
Date_m =
var date_s = CALCULATE(MAX(Company_table[Date]), ALLEXCEPT(Company_table,Company_table[Subject],Company_table[Company Name]))

return FORMAT(CALCULATE(MAX(Company_table[Date]),FILTER(Company_table, Company_table[Date] = date_s)), "dd-mm-yyyy")
1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @Hassa0213 , Have you tried with the INSCOPE function?. Look at this little example:

Bifinity_75_0-1667737248018.pngBifinity_75_1-1667737279083.pngBifinity_75_2-1667737296334.png

The measure:

Max Date = if(ISINSCOPE(Table_[Company Name]),max(Table_[Date]),"-")

I hope it can work for you, greetings

View solution in original post

4 REPLIES 4
Hassa0213
Frequent Visitor

Hi All, Please let me know how to create a measure for ID column (ID_m).

* Requirement is not to show the ID when drill up to the Company and region level in the matrix. Thanks!

 

Hassa0213_0-1668214864656.png

 

Hi,

Assuming ID_m is already a measure, write this measure

Measure1 = if(hasonevalue(Company_table[innovation stage]),[ID_m],blank())

Hope this helps.


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

Hi @Hassa0213 , Have you tried with the INSCOPE function?. Look at this little example:

Bifinity_75_0-1667737248018.pngBifinity_75_1-1667737279083.pngBifinity_75_2-1667737296334.png

The measure:

Max Date = if(ISINSCOPE(Table_[Company Name]),max(Table_[Date]),"-")

I hope it can work for you, greetings

@Bifinity_75  Thanks alot. This worked. 

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