Make cube dimension group by range - ssas

I have the AdventureWorksDW2008R loaded and have been able to create a basic cube in Visual Studio. I am trying to find information on how I could create grouping for an attribute such as [Product].[Size].[Size]. What I would like to do is have to the option to select 0 - 40, 41 - 50, 51 - 60 etc.
Could someone point me the right direction to be able to build this?

You could have a case statement in your view that splits out the size categories for products.
You then add in that attribute to your dimension.
You could also look up the Discretization setting.

Related

Different value in PowerBi chart per drillthrough level

A productivity chart consists of a three level date hierarchy (1) year, (2) month, (3) week as Axes. Drilling down the chart over the date hierarchy, I would like to display a different measure per drillthrough level. Such that, drillthrough level (1) date[year] displays measure A, (2) date[month] displays measure B, (3) date[week] displays measure C.
Appreciate any help on this issue a lot.
Thanks in advance!
The following appeared working for me and provides a unique measure per drillthrough level:
Measure_PAR = IF(ISFILTERED(Query1[Date].[Year]) && ISFILTERED(Query1[Date].[Month])
&& ISFILTERED(Query1[Date].[Week]), Measure C
,IF(ISFILTERED(Query1[Date].[Year]) && ISFILTERED(Query1[Date].[Month]), Measure B
,IF(ISFILTERED(Query1[PRODUCTIONDATE].[Year]), Measure A)))
This is not possible in the traditional drill-down options using hierarchy. You will just be able to drill-down into the next level of hierarchy for the same measures. But, you can do a version of your desired output using Cross-report drill-through. You will have to create 3 report pages in this case, one for each level and then you can use the drill-through to report option to get the desired result:
https://learn.microsoft.com/en-us/power-bi/desktop-cross-report-drill-through
This may not be the exact solution you are looking for, but I believe this is the best possible solution for your request. Hope this helps.

How to Write a Variable for a Pie Chart with Multiple Fields in Qlik Sense

I am looking for some help in regards to writing a variable for a Pie Chart on my dashboard. I currently have the following variable for a KPI chart and this shows the latest weeks value but has the flexibility to change if a different week is selected.
=Sum({<week_date ={">=$(=Weekstart(max(week_date)))<=$(=Weekend(max(week_date)))"}>}total_calls)
Now for my pie chart, I want to show the different type of work that has been worked on during the week and this is through the 'source' column which has the following types. This will be my dimension(slice).
SOURCE
Calls
Email
Offline
The measure will show the number of 'touches' and is then displayed as a %. This works if I put the fields in, but I would like to write a variable so that it is dynamic but not sure how I do that.
Would appreciate any advice on how to move this forward.
UPDATES
I have the following values for the latest week (week ending) 21/02/2020:
Calls | 8,477
Email | 4,040
Offline | 9,052
and would like to show this in a Pie Chart. Currently I have managed to write the following definition:
=Sum({<[w_c.week_date] ={">=$(=Weekstart(max([w_c.week_date])))<=$(=Weekend(max([w_c.week_date])))"}>}[w_c.touches])
but I get a total instead of the individual sums for the Sources even though I have selected the SOURCE as the DIMENSION.
SOURCE | $(vVariable)
Calls | 21,569
Email | 21, 569
Offline | 21,569
Any ideas on how I can fix this?
I have added my table view as well as how I am able to get the figures manually if I select the source and week_date column as the dimension and the touches as the measure. If I filter for the latest week it shows me the volumes I want, but I would like this to work dynamically through the use of a variable. I have attached an image showing this, numbers will be different to the above as these have been updated.
I have managed to fix this by removing the "=" from my expression and this gave me the correct individual figures.
=Sum({<[w_c.week_date] =
to
Sum({<[w_c.week_date] = ...

Grand totals row not summing in Google Data Studio

Well, I'm absolute newbie in Google Data Studio, but for any reason, my grand totals rows is not working.
I'm learning to use this tool, and I made an easy table with just countries and sessions.
Piece of Cake. Now I just want to add a total row where it sums all sessions. That's all. I activated option Show Summary Row but it shows nothing.
Thing's I've done and not worked:
Update and refresh
Changed time period and tried different dates just in case.
Delete and create again full table.
Checked connection. I get data and the data is right, I just cannot sum it.
Changed size and format of table, just in case it where a problems or margins or font color.
And I know it can be done, because different sources. I've read this question here:
Grand Total is wrong in Google Data Studio
But it did not help. In that question, a user posted an image in the comments:
As you can see, he managed to get what I'm trying to do.
So I must be doing something wrong, and I do not why.
UPDATE 2: If I apply a filter, I get no totals. You can see my config in the right side of image.
Can anybody give me a clue of how to make a grand totals row in Google Data Studio?
Thanks
Sounds like a bug. It should be a case of selecting that tick box. Strangely, I looked at an existing table I have with totals and when I unticked the box and then ticked again, the totals didn't reappear and disappeared off another table on the page (like your example). They did reappear eventually with some refreshing of the data and page but seems like there's something wrong with them.
I don't think this is a bug I think it part of the design.
I actually just discovered the reason this is happening at least for me, it doesn't actually sum the values in the table, the grand total summary of a table is a sum of whatever the metric being used is not the actual rows shown in the chart. so if you have a dimension (like age / gender) where there is data thresholding applied internally by google but are using a metric such as users you will see the grand total from the metric value without the thresholding applied from the dimension.
Proof below
You can see the grand total for column 2 is not 953.6 its 453.6 and if i look at a non threshold dimension (country)
you can see where the 953.6 comes from since the data source supplied to the table uses 80% of all users 1192 * .8 give me 953.6 which is what the grand total is displaying. Conclusion, the only way this number could be possible is if, when using a threshold dimension for a table with metric there will be a discrepancy since the grand total value is not coming from the table values but rather from metric source data, which will not have the tables dimension applied for some odd reason.

How to customize Tableau Dashboard to read and display corresponding values?

I need your help in customizing my tableau dashboard.
My data table in excel looks like this:
Year Actual Target
2012 12 15
2013 20 23
2014 23 25
In my tableau dashboard, I want the user to select/input just the year and in return, I want to display the corresponding values. For example, if the user selects Year=2013, then I want to display the actual(20) and Target(23) values to the corresponding year in Tableau Dashboard.
So far, I could only manage to get the year in the input field, but unable to return values corresponding to it.
In short, this is what I want to achieve.
It's very simple. You drag the [Actual] and [Target] fields, and drop them on Rows. Then select both, right-click and select discrete. This way Tableau will understand you don't want a continuous graphic, rather you want to display discrete values.
I strongly recommend you watch the video tutorials. I don't know if they explain exactly this feature, but it's very basic stuff, and you should be able to discover it yourself if you understand the basics

Creating calculated items in powerpivot

I am trying to create a new row of data like the following:
Line item. Actuals
Total compensation 200
Net revenue 400
Net rev per total comp. 2
I used to be able to do a calculated item to do this in old pivot table but how do I accomplish in powerpivot? It needs to be a row calc not a column
If you are using a ssas cube then it is possible using the calculated member option where you can drag and drop line items (members) and divide which is pretty easy
Just connect to SSAS and Query --> Design in the upper menu you can find a calculator, clicking that you can achieve.
can you just elaborate on database used and excel version