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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-cgao-msft
Community Support
Community Support

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
v-cgao-msft
Community Support
Community Support

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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