I need help to for using countif in QuickSight.
eg: we have:
name id Location
karthik 1 India
harsha. 2 UK
karthik 3 India
Vikram 4 USA
karthik 5 USA
I want the syntax in QuickSight for counting the number of records karthik with location Inida has in the above. Example answer is 2.
Please help with this.
You can count using this syntax
countIf(dimension or measure, condition)
In your case.
countif(name, {name} = 'karthik' AND {Location}= 'India' )
Related
I have two google sheets. the first sheet shows people and hours worked
the second sheet shows people and projects worked.
I want to pull in the projects from sheet two into sheet one so that I have people, projects, hours worked in one sheet.
Sheet one is something like below
Person
Hours
Sam
12
Jen
5
James
6.2
Sue
4
Sheet two is something like below
Id
Person
Project
123
James
Something
569
Jen
abc
25
Sue
Test
456
Sam
best_Wing
The result I am looking for is
Person
project
Hours
Jen
abc
5
Sam
Best_wing
12
James
Something
6.5
Sue
Test
4
The names in the Person column on sheet 1 are hyperlinked. So the name is displayed in the Person Column, but when clicked on links to a different page.
I was trying to do a VLOOKUP, but I keep getting a formula parse error, I used the =TO_TEXT(A3:A) to pull the text from the hyperlinked field and use that as a Filter for the second sheet, but I am doing something wrong, somewhere.
=ARRAYFORMULA(IFNA(VLOOKUP(TO_TEXT(A3:A), FILTER({sheet2!$B$2:B, sheet2!$C$2:C}, sheet2!$C$2:C), 3, 0)))
I am just a beginner in Dax language.
I googled it a lot to find solution, but failed.
Please help me to solve this problem.
Here are the two tables examples and there is no relation between them. ( I am using power query and power pivot)
I need to get sales location visitor from another table.
enter image description here
enter image description here
Branch
Date
Item
QTY
Sales Location
Visitor
USA.
2021.01.01
A.
23
1st floor
????
Canada
2021.01.02
B.
44
2nd floor
????
Date
USA's 1st floor visitor
USA's 2nd floor visitor
Canada's 1st floor visitor
Canada's 2nd floor visitor
2021.01.01
5435
664
2342
4532
2021.01.02
5345
345
2234
342
I tried to use IF and Lookupvalue, but it shows errors.
Could you please help me?
Thank you in advance.
You'll need to use Power Query to do some transformations to the second table so that it looks like this:
To do this, you'll have to transpose all columns, fill down the country column, and unpivot all other columns (highlight all other columns > unpivot columns). I'd then recommend adding a column to both tables that unites the country and sales location (USA-1st floor, USA-2nd floor, etc.) to both tables and use that as your connection in the model. You'll then be able to do a VLOOKUP using this united column between the tables.
Someone else may have a quicker answer but this should get you there!
Rank Turnover =
RANKX(
ALL(Regions[Region]),
CALCULATE([Sales Total],KEEPFILTERS(Sales[Currency]="EUR"))
)
Hi everyone, got stuck with this one for the second day in a row. There are 3 tables in a dataset (Regions, Sales and Currency). Regions and Currency are filtering out the Dashboard when applied. My Intention is to have Total Sales in a Card for EUR only for a Chosen in a Region Filter Country. Everything works fine, but whenever I choose "LC" (Local Currency) in Currency Filter, the numbers Change - I Need to overcome that. Changing LC in that Filter should not affect Total Sales, they have to still be done in EUR.
Any help will be appreciated,
Thank you
Rank Sales EUR =
RANKX(
ALL(Regions[Region]),
CALCULATETABLE(
{[Sales Total]},
TREATAS({"EUR"}, 'Dashboard Currency'[Currency]),FILTER(Dates, Dates[Year]=MAX([Year]))))
Here is the answer. Thank you all for support
I have a set of data
alex, 50
anu, 85
limi, 41
sam, 56
I need to find the rank of the students and store it in another column with the rank
eg:-
alex 50 3
anu 85 1
limi 41 4
sam 56 2
I tried with the rank function.
SELECT
a.name, a.mark,
rank() over (ORDER BY a.mark DESC) as rank
FROM
list a;
please help me.
thanks in advance!!
this is not working
First thing you need to do when you ask for help is to learn how to ask for help. "It does not work", "it errors" are not proper ways of asking. You need to specify always what error you get or how exactly it does not work. Does it crash? Does it print 'Hello, World!'? Does it make the speakers beep? We're not clairvoyant.
Now, about Window and Analytic functions in HIVE. They were introduced in HIVE 0.11, see HIVE-896. You can read the specification in the Hive Language Manual, including examples.
Make sure you run on Hive 0.11 to start with.
I'm trying to group StartDateTime in Business Objects. Data for StartDateTime is coming from a Cisco server. It is in format 7/15/2013 10:52 AM. I am just trying to group these so it's 7/1, 7/2, etc.
I need to create a dimension out of this Day Grouping so I can represent a count of events on each date. Right now I am doing:
=FormatDate([Query 1 (1)].[Startdatetime];"DD")
I've tried variations of this, but nothing is working. I used the above formula to group the hours, I just replaced "DD" with "HH", so not sure why this formula would be so different.
Any ideas? Thank you. It's appreciated.
what if you try
=FormatDate([Query 1 (1)].[Startdatetime];"dd/MM/yyyy")
This is old but wasn't answered. In case anyone stumbles upon this like I just did, the formula is just case sensitive. It should be:
=FormatDate([Query 1 (1)].[Startdatetime];"MM/dd")
Here's a link that includes all permutations of date formatting:
https://blogs.sap.com/2013/11/21/how-to-use-formulae-to-change-date-and-time-formats-in-webintelligence/