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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SebSchoon1
Post Patron
Post Patron

LINESTX multiple categories

Hello Guys, 

 

I'm new with the Linestx function, 

 

i'd like to get the table with the slope etc, 

 

However my fact table is particular, this table is called 'get'

 

it has types of movements like this 

Item IDMovement typequantitymain warehousesub warehouseMovement Date    
ASales-1MAINWASUBW02/08/2023    
BTransfer out-1MAINWBSUBWBA01/08/2023    

 

and a Calendar (habitual one) with date, month name, blablabla, called 'Calendar'

 

I would like to create a linestx with calendar dates, and get table, with quantitites, per item (i also habe an article table called 'Base Article', that i'd prefer to use if possible), And per Warehouse.

 

so the regression should be done 

 

with sales of items per date per warehouses, is this possible?

 

i have tried with using a summarized table like this

 

Frequence ventes = 

SUMMARIZE(

    FILTER(

        get,

        get[LIBELLE NATURE DE MOUVEMENT] = "Ticket"

    ),

    get[CLEF UNIQUE ARTICLE],

    get[DATE PIECE],

    get[DEPOT],

    get[Ventes],

    "Nb qté ventes (chiffre)", COUNTROWS(get)

)

but i cannot achieve what i'm looking for , ever after having searched hours and hours 😛

 

Thanks in advance for any hints or help ! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SebSchoon1 ,

 

Please check the pbix file:

vcgaomsft_0-1691131868414.png

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SebSchoon1 ,

 

Please check the pbix file:

vcgaomsft_0-1691131868414.png

 

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

foodd
Community Champion
Community Champion

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

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

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors