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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dhruv100322
Regular Visitor

FIXED in POWER BI to get the level of detail

I have the following dataset in power BI:

IDName Type Channel Frequency Open
1Message 1 A B C 10
2Message 2 A B C 20
3Message 3 B A C 40

 

I am trying to get the following table in Power BI as a result:

IDName Fixed Open
1Message 1 30
2Message 2 30
3Message 3 40

 

Fixed Open is calculated as the group of Type, Channel and Frequency so it will be like below:

Type Channel Frequency Open (SUM)
A B C 30
B A C 40

 

How can I achieve this in Power BI?

1 ACCEPTED SOLUTION

@Dhruv100322 
Please refer to attached sample file with the solution

1.png

Fixed Open = 
CALCULATE ( 
    SUM ( 'Table'[Open] ), 
    ALL ( 'Table' ), 
    'Table'[Type] = MAX ( 'Table'[Type] ) 
)

View solution in original post

4 REPLIES 4
FreemanZ
Super User
Super User

try to create a table with this:

Table =
VAR _table =
ADDCOLUMNS(
    TableName,
    "OpenSum",
    CALCULATE(
        SUM(TableName[Open]),
        ALLEXCEPT(TableName, TableName[Type], TableName[Channel], TableName[Frequency])    
    )
)
RETURN
SELECTCOLUMNS(
    _table,
    "ID",TableName[ID],
    "Name", TableName[Name],
    "OpenSum", [OpenSum]
)
 
i tried and it worked like this:
FreemanZ_0-1670245168208.png
tamerj1
Super User
Super User

Hi @Dhruv100322 
Please try

Fixed Open =
CALCULATE ( SUM ( 'Table'[Open] ), ALLEXCEPT ( 'Table', 'Table'[Type] ) )

it doesnt work. it gives as below 

Dhruv100322_0-1670242554888.png

 

Dhruv100322_1-1670242567051.png

 

 

@Dhruv100322 
Please refer to attached sample file with the solution

1.png

Fixed Open = 
CALCULATE ( 
    SUM ( 'Table'[Open] ), 
    ALL ( 'Table' ), 
    'Table'[Type] = MAX ( 'Table'[Type] ) 
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.