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
mgrayTCB
Helper IV
Helper IV

Is this possible in a matrix?

I am tryinig to write a measure to show project totals (ignoring selected dates and summing fee for all dates) on the project total lines of a matrix. Is this even possible? The date lines would be blank in the Fee All Years colum. Whenever I write a meausre using All or Remove Filters I get date lines that I dont want. I only want date lines for the selected year but fee for all years to show at the summery level of each project.

 

mgrayTCB_1-1624534324298.png

 

 

 

 

mgrayTCB_0-1624534182809.png

 

 

 

3 REPLIES 3
amitchandak
Super User
Super User

@mgrayTCB,Based on what I got 

You can max(Table[Date]) to check date or isinscope to check level

 

You can create a measure like

 

calculate(sum(Table[Value]), filter(allselected(Table), Table[Project] = max(Table[Project]))

This will project level sum

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

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

Thanks but I might need a few more bread crumbs.... and I am not sure I understand the IsInScope suggestion.

 

Using your notes I wrote this measure:

xtest SumAllyears2 =
CALCULATE(
[TCBFee],
FILTER(
ALLSELECTED(project),
project[ProjectName] = max(project[ProjectName])
)
)
Which does not ignore the date row context and gets me what I already had.
mgrayTCB_0-1624548508393.png

For each project I am hoping to have this:

mgrayTCB_1-1624548570330.png

 

 

 

 

 

Anonymous
Not applicable

Hi @mgrayTCB,

Please take a look at the following link about use Dax format to check hierarchy levels, then you can mix if statement with a custom expression to show or replace specific data level results in a matrix visual.

Clever Hierarchy Handling in DAX - SQLBI

If you confused about the coding formula, can you please share a pbix file with some dummy data (keep the raw data structure) and expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.