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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
thobenjo
Frequent Visitor

Report SPliting

Hi Experts if you can see these are 3 different accounts combined to one gl account, how can I split this into different sheets so that I can take a better reportsample 2.PNG

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @thobenjo ,

As I do not have your specific data, I have created similar data for your reference.

vluwangmsft_0-1654485515950.png

 

First ,create index by power query:

vluwangmsft_1-1654485552736.png

Then create the below index:

rank =
IF (
    'Table'[Column1] = "Expenditure",
    RANKX (
        FILTER (
            'Table',
            'Table'[Column1] = EARLIER ( 'Table'[Column1] )
                && 'Table'[Column1] = "Expenditure"
        ),
        'Table'[Index],
        ,
        ASC
    ),
    0
)
test1 = CALCULATE(MAX('Table'[rank]),FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])))

vluwangmsft_2-1654485640013.png

 

According new column ,create table:

Table2 = CALCULATETABLE('Table','Table'[test1]=1)

vluwangmsft_3-1654485674887.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @thobenjo ,

As I do not have your specific data, I have created similar data for your reference.

vluwangmsft_0-1654485515950.png

 

First ,create index by power query:

vluwangmsft_1-1654485552736.png

Then create the below index:

rank =
IF (
    'Table'[Column1] = "Expenditure",
    RANKX (
        FILTER (
            'Table',
            'Table'[Column1] = EARLIER ( 'Table'[Column1] )
                && 'Table'[Column1] = "Expenditure"
        ),
        'Table'[Index],
        ,
        ASC
    ),
    0
)
test1 = CALCULATE(MAX('Table'[rank]),FILTER(ALL('Table'),'Table'[Index]<=EARLIER('Table'[Index])))

vluwangmsft_2-1654485640013.png

 

According new column ,create table:

Table2 = CALCULATETABLE('Table','Table'[test1]=1)

vluwangmsft_3-1654485674887.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.