DAX - formula for lost customers - pivot-table

Been using Javier Guillens formula for Lost Customers and it's working great. Problem is though I want customers to be considered lost after 3 months of no transactions rather than one. How would I do that?
Also, another problem is when I try to make it a pivot table I can see the number of lost customers for each month but I cant see which customers. Because when I try to put CustomerID as rows so I can see each customerID per month nothing happens. There is an expand icon but when I click it nothing happens. Do you happen to know why?
Thanks

This is pretty much the best source for all sorts of new/returning/lost customer measures, with full explanations and templates. Their lost customer measure can be used with arbitrary periods.

Related

Would like to create access task list with checkboxes, but unsure how to set up the tables

Potential Table structure
Final form look
I'm uncertain if this table structure is correct for what I want. For one thing, I don't really want a date next to each task, because all of the tasks should reflect one date -- this is a form for the day, where all the tasks completed go with the same day: the form is for that day, so if 7 are checked, that's one day. 12 may be checked the next.
I was also thinking about laying out every task as its own field, with one date field of course, solving the date issue, but that feels wrong.
Should I consider making a second table that links to the tasks with the fields done, date, taskID(FK).
Looking for suggestions on table structure, thanks!
Honestly, I think you'd be better off with soemthing like this:
Yes, it will make inserts a bit more annoying, but however, the table structure you outlined, is clearly a one-to-many relaitonship. It woul dbe more correct to design your tables in a more relational way, and then account for it by the way you wrote code. This will also allow you to insert rows for each level of difficulty as well (assuming youre allowing end users to multi select).
You could even stretch this out a bit further and make another look up table for your notes, since they seem to be pretty standardized and then have the noteID in your tblActivity. This would essentially make tblActivity your main table, with all the nonsense you dont necessarily need in look up tables.

Is it possible to use LookupSet/Lookup with Running Value in SSRS

This is my first question on StackOverflow so apologies if there is not enough appropriate information.
Rather than having four different tables that I try to position 'just so' so that they look like one table, I was hoping to have all of my data in one visible table and hide the rest.
To do this I was trying to use LookupSet/Lookup with Running Value (I need a cumulative figure for each fortnight from a start date).
I have used the following code which supplies me with figures in the table - however the figures seem to be nearly double what they actually are.
=Lookup(Fields!StartFortnightDate.Value, Fields!StartFortnightDate.Value,
Fields!RowIdentifier.Value, "KPI004")
Is it possible to use Lookup with RunningValue? It won't let me use ReportItems either its obviously only pulling from the first box and therefore is just repeating the first figure again and again.
Any help, guidance, or even a simple "it's not possible" would be appreciated.
Edited to add more information as suggested:
It's difficult to add example data without worrying about data protection etc.
Report design is currently:
ReportDesign
Each table has it's own dataset - I'm trying to get them all into one table.
Lets say the first dataset is number of cars sold in each fortnight.
The second dataset (table) is number of meetings held.
The third dataset is number of days weather was sunny/cloudy/rainy etc.
(This obviously isn't what the datasets are, but I'm trying to show that they don't actually relate to each other that much and therefore can't all be in the same script)
All datasets have a table of the fortnightly dates within that quarter, my hope was to get one table that showed the cumulative figures of each item even though they're not in the same dataset - the tables are all grouped by the StartOfFortnightDate.
The script =RunningValue(Fields!NumberOfFordCarsSold.Value, Count, Nothing) and similar works fine in the separate tables, however if I add a row to the top table and try to use RunningValue with Lookup it doesn't work.
When I used the script mentioned at the top (Lookup script) I get inflated figures (top row of this image) compared to the expected figures (bottom row of the image): IncorrectAndCorrectFigures
Apologies if this doesn't make sense, it's likely that my complete confusion in trying to find the answer is coming across in the question.
If the resulting datasets are all similar then why can you not combine them?
From the output they seem to be just Indicator & Date.
Add an extra column to indicate which set of data each row belongs to (Cars Meetings etc), this might help with grouping rows in the report.

Add empty rows to tablix dynamically in SSRS

I would like to ask around for help. How do we add empty rows to tablix dynamically in SSRS, as in I wrap the rows(including the totals) inside the list. And I want to have fixed table layout in every page mostly just like this: But, It has multiple set of total rows(sub total and grand total at the very end).
Have been racking my brain quite a long time, still no answer yet. Any workaround how could I get this table layout in SSRS Designing level???
I prefer not to mess up with SQL data-set. Because I want it dynamic.
Any idea?
Following is my previous similar question that I have able to solved :
SSRS Fixed Tablix/ add blank rows below
According to bot's suggestion, I could make it work. But this time around, case is a bit complicated as the tablix is not having only one data-row, now it has 3 rows: one data row, one subtotal and grand total.
Pls help me out. Thank you all.

Track and Field statistics database problems

Hey guys I was hoping someone could steer me in the right direction! I've been working on this for a while and, I won't lie, it is for a class, but, I am making it for our college too. It's basically a database to keep track of stats from meets. An example of what I want it to do is, lets say someone runs the 800m run and they run a 1:58 or something, well that person will have that stat to their name, if that makes sense. But anyway here are my tables.
By the way, this will go into a MySQL database, and will be used from a web interface, not access. But this is what I have so far, and for some reason, it's not really making sense to me...
AthleteTable(
AthleteID
AthleteFirstName
AthleteLastName
AthleteDOB
AthleteHome
AthleteHighschool
AthleteYear
AthleteGender
AthleteWeight
AthleteHeight
AthleteEvents)
AthleteParticipationTable(
AthleteParticipationID
EventID
AthleteID
T_F_ID
EventMark)
EventTable(
EventID
EventName
EventLocation
EventDate
EventSeason)
Track_and_Feild_Event_Table(
T_F_ID
EventName)
The Athlete table is just that, it's the athletes themselves. The Athlete Participation is what events the athletes ran/jumped/threw etc... in the meet. The Event Table is something one of my teachers suggested I put in there, and that's the one I'm having troubles with. In the Event table, it's an autonumber but in the the athleteparticipation, it's a number. And the Track_and_Field table is all of the possible events in track and field.
I guess, I was just wondering if I'm even going at this the right way and if anyone can help that'd be glorious.
And if I didnt explain everything well enough just tell me what you want me to elaborate on and I will do that
I think you are on the right track with the Athlete, Event, and Track and Field Event tables.
The AthleteParticipation only needs to record that the athlete took part in the events. However you need a results table which records the round (heats, quarters, semis, and finals) plus and the mark they achieved. The idea is that the athlete can have one or more results depending on how many they participate in.
You may also include the day of the results, if the events last more than one day. This may be beneficial later when you are developing statistics for the athlete.

Database Design about Date/Time Column

Brief Description:
I have a table that stores articles. Articles are listed on table and sorted - DESC - by dateCreated.
dateCreated column represents the date and time user has posted/created the article. It is fixed and must not be changed.
Problem:
By the days, old articles usually ends up in far pages. However, the user has the chance of bumping his article back to the top of the table on first page. Since i'm ordering the articles by dateCreated, which mustn't be changed, how can i bump the article without changing dateCreated?
My Solution - I'm not sure if its a good one or not (i need suggestions):
Create another column called bumpDate. When user posts an article, date/time will be inserted into dateCreated and bumpDate. The articles on the gridview will be sorted by bumpDate. When user bumps his article, i only update bumpDate. Therefore, user's article ,regardless of dateCreated date, will be on top. Gradually, the article will go down by the days depending how many new articles posted by other users.
Do you see any glitches in this design/solution?
What you have outlined is how those things are typically done. While BumpDate might not be the best name (does this truly represent the action of "bumping", or did they do something else like modifying it?), that's what you should use.
I don't see any real issues with what you are proposing, only possible thing would be to try and utilize an INT value instead of a DateTime (4 bytes vs 8 bytes) if you are going to have a LOT of data, otherwise I would do the same thing you are proposing.

Resources