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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Martyn_Cole
Frequent Visitor

Show blanks at the top level of a Matrix, it keeps showing some values from lower down

Hi, 

 

I have a matrix, where I want to show blank values in the top level, I have applied HASONEVALUE as below but some cells are showing values not blank. Most seem to be where there is only 1 value lower down. 

The data only has a row if there is a planned loading on an activity, and does not have a row with a blank on it.

 

Planned Loading % =
IF(
    HASONEVALUE('FORWARD PLANNING'[Project ID & Title]),
    SUMX('FORWARD PLANNING',('FORWARD PLANNING'[PLANNED_HOURS])/('FORWARD PLANNING'[Working Hours Per Week Per Employee])),  -- Actual values for lowest level
    IF(
        HASONEVALUE('FORWARD PLANNING'[RESOURCE_DESCRIPTION]),
        SUMX('FORWARD PLANNING',('FORWARD PLANNING'[PLANNED_HOURS])/('FORWARD PLANNING'[Working Hours Per Week Per Employee])),  -- Summed values for middle level
        ""  -- blank for top level
    )
)
 
2024-06 etc. are weeks of the financial year. 

Martyn_Cole_0-1700222245314.png

Sample data

RESOURCE_DESCRIPTIONPLANNED_HOURSPROJECT_IDFY & WeekWORKING HOURS PER WEEK
100032511232024-147.5
100032521232024-147.5
100032559872024-147.5
10003250.051232024-147.5
10003250.059872024-147.5
10003250.059872024-147.5
10003250.059872024-147.5
100032569872024-147.5
10003250.059872024-147.5
10003250.059872024-147.5
10003250.059872024-147.5
100032589872024-147.5
100032551232024-147.5
100032551232024-147.5
100032551232024-147.5
100032589872024-147.5
10003250.051232024-147.5
10003250.051232024-147.5
10003250.051232024-147.5
10003250.051232024-147.5
10003250.059872024-147.5
100032591232024-147.5
3 REPLIES 3
lbendlin
Super User
Super User

Please show the expected outcome based on the sample data you provided.

I would like this please, blanks on all top level "resource group"

Martyn_Cole_0-1700494925272.png

 

lbendlin_0-1700514244446.png

lbendlin_1-1700514261841.png

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.