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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Help with setting up a formula for sorting and displaying

I want some help with a formula in Power Bi , was wondering if you able to assist .

Here is an example of the data 

 

How do i sort on purchase ,so that all the pages visisted by the IP address  are displayed when sorting on packages 

image (6).png

 

1 ACCEPTED SOLUTION

SORT by IP Address and Date/Time first. Then highlight the Purchase column and Fill Up.

 

Remember, you can always delete an applied step in Power Query so no harm in experimenting.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





View solution in original post

8 REPLIES 8
ToddChitt
Super User
Super User

Can you give us a sample of what the output should look like?

 

Maybe try a simple TABLE visual, and add Purchase, IP address, and a COUNT of some column. That will give you the number of times any one Address was visited for each Purchase.

 

What are the blank cells in the Purchase column? Should they be FILLED DOWN in Power Query?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

@ToddChitt 

The blank cells in the purchase column explains the behavior and steps the IP addresses does before purchasing, this information is important as I am trying to see their  behavior before and after 

Anonymous
Not applicable

do i use count on column ?

Can you explain the data? Is it that somone from IP address 119 hit three pages on 10-Oct and they are, in order: Welcome, Product, and Sale, and they ended up purchasing Package S? Then on 11- Oct someone from IP address 117 hit pages Welcome, Details, Product, Home, Sales, and purchased Premium S.

Seems like to need to first sort the data by IP Address then Date (I assume you have a Time componennt in the Date column?) and do a FILL UP in Power Query. That way, that first row, 10-Oct, 119, Welcome, has a value of Package S under Purchase.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

yes the way you explained the data is correct

The date column illustrates date and time but i changed it to date only

Should I have the time componement also before doing your steps.

I havent used Fill up before so a bit unsure

Time portion is important because, we assume, that the LAST thing anyone does is the PURCHASE step. So if you sort by IP Address then Date Time, that Sales/Purchase row will be at the bottom, as you have it displayed.

In Power Query, on the Transform menu, look for "Fill". Highlight the column first.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

understood


In Power Query, on the Transform menu, look for "Fill". Highlight the column first.

Which column would this be, the date and time column  ?

SORT by IP Address and Date/Time first. Then highlight the Purchase column and Fill Up.

 

Remember, you can always delete an applied step in Power Query so no harm in experimenting.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.