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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Meera556
Helper I
Helper I

Create line chart in power bi with window functions and exclude LOD in tableau

Hi

I'm new to power bi and i'm trying to replicate a chart which is created in power bi.

the line chart which is created in tableau contains 2 calculated fields 

1) max per level = window_max(count of errors/total(count of errors))

2)exclude_lod = {exclude timestamp : count of errors}

In rows the timestamp column is placed at hour level

In column shelf max per level, region name,exclude_lod columns are placed in the mentioned order

in text count of errors is placed.

I trying this chart to recreate in power bi

when using a line chart and placing timestamp values in y axis I'm getting count of timestamp so i have tried using matrix visual.

I need help in creating those calculated columns and using the right chart for creating the visual

Thanks for your help in advance

2 REPLIES 2
Meera556
Helper I
Helper I

Can anyone help me with this

Anonymous
Not applicable

Hi @Meera556 ,

Please try these measures:

Max Per Level = 
MAXX(
    ErrorsTable, 
    DIVIDE(COUNT(ErrorsTable[Errors]), CALCULATE(COUNT(ErrorsTable[Errors]), ALL(ErrorsTable)))
)
Exclude LOD = 
CALCULATE(
    COUNT(ErrorsTable[Errors]), 
    ALLEXCEPT(ErrorsTable, ErrorsTable[RegionName])
)

If this doesn't work or I've misunderstood your question, please consider posting some sample data with the expected output.

How to provide sample data in the Power BI Forum

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors