cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Matrix - Different measure with different level of granularity

Hello everyone,

 

I have a matrix with different level of granularities:

  • Contract 1: XXXXX
    • Project 1.1: XXXXX/ABC
    • Project 1.2: XXXXX/DEF
    • ...
    • Project 1.6
      • Risk 1
      • Risk 2
      • Risk 3
  • Contract 2: YYYYY
    • Project 2.1: YYYYY/ABC
      • Risk 1
      • Risk 2
      • ...

I want to put a measure in column, but the measure should do different calculations at Contract level (sum the related projects) and project level (find a value in a related table), and return nothing at Risk level.

 

Any hint? I have tried with HASONEVALUE for risks, IF(HASONEVALUE(RiskNumber), "", IF(HASONEVALUE(Contract), SUM(...)...

 

But I have Project with only 1 risk, which then makes the related project and contract to have also "" 

 

If you have any ideas to get me started on the right path.

 

Thank you for your time,

Tom

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Matrix - Different measure with different level of granularity

hi  @TomB 

You could get it by use ISINSCOPE Function to create a IF measure, see more detail as below:

https://xxlbi.com/blog/new-dax-function-isinscope/

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Matrix - Different measure with different level of granularity

hi  @TomB 

You could get it by use ISINSCOPE Function to create a IF measure, see more detail as below:

https://xxlbi.com/blog/new-dax-function-isinscope/

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors