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
MiKeZZa
Post Patron
Post Patron

How to model a process

Hi community,

 

I have a process which is stored in this way right now:

 

ClientStartDate Step 1StopDate Step 1Indicator Step 1 reachedStartDate Step 2StopDate Step 2Indicator Step 2 reachedStartDate Step 3StopDate Step 3Indicator Step 3 reachedStartDate Step 4StopDate Step 4Indicator Step 4 reached
1002019-01-062019-01-0812019-01-122019-01-151NULLNULLNULL2019-02-012019-04-021
1202019-01-012019-01-0612019-01-092019-01-1212019-02-012019-04-021NULLNULLNULL

 

As you can see some steps can be empty. My basic question is: how to model this? In the above way or going this way:

 

ClientStepnameStartdateStopdateIndicator reached
ClientStep 12019-01-01....1
..............................

And so on....

 

Or even this way came to my mind:

ClientDateStep
1002019-01-011
1002019-01-021
100........

 

 

To make it a little more complex; there is a second fact-table; this table has information about campaigns that have can be active and can have a complete different period:

ClientIDStartStopProduct category
1002018-12-162019-02-1289
1002019-02-132019-03-1288
1202019-02-012019-02-2273

 

And those facts must be presented in a combination also...

 

I will be able to prepare the data in every shape I'll need (can do it in SQL by example).... Can some people give me an advice about how to handle this. I've been working as BI-developer for many years but this is a hard case....

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@MiKeZZa ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

v-yuta-msft
Community Support
Community Support

@MiKeZZa ,

 

The data you provided seems not to be the raw data. To be general, you may use "Unpivot" in query editor. However, if you still can't solve it, please share some raw data and expected result?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.