-
Re: How to read multiple values from a filter pane
dave liu Oct 27, 2017 6:32 AM (in response to siddharth soam)Try this
=Sum({<[counting period]={$(=Concat(Distinct [counting period]-1,','))}>}revenue)
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 1:08 AM (in response to dave liu)Hi Dave,
Its working well only its not giving me any data for 1 counting period
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 1:19 AM (in response to dave liu)I am using the following expression
if(H1='Previous Completed Quarter', Sum({<Quarters={$(=Concat(Distinct Quarters-1,','))} ,[Accounting Period]={$(=Concat(Distinct [Accounting Period]-3,','))}>}[Service Rev]),
if(H1='Recent Completed Quarter',sum({$}[Service Rev]))
))
where h1 is the header and quarters are fetched from accounting period as follows.
quarters accounting period
1 1,2,3
2 4,5,6
3 7,8,9
Problem is data is showing correctly for quarter>1 , but for quarter 1 no data is being shown
-
Re: How to read multiple values from a filter pane
dave liu Oct 30, 2017 1:34 AM (in response to siddharth soam)because when you select quarter 1 it will calculate 'quarter 0' which is not exist
what data do you want to show for 1 counting period ?
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 1:39 AM (in response to dave liu)-
Re: How to read multiple values from a filter pane
dave liu Oct 30, 2017 2:03 AM (in response to siddharth soam)I don't think 'H1' makes sense,you may need to get rid of it ,just go with two expressions like this
expression for previous completed quarter :
Sum({<Quarters={$(=Concat(Distinct Quarters-1,','))}[Service Rev])
expression for recent completed quarter :
Sum([Service Rev])
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 2:11 AM (in response to dave liu)Hi Dave,
My requirement consists of multiple headers thus I have to make inline headers. I cannot use differnet measures for previous and current.
-
Re: How to read multiple values from a filter pane
dave liu Oct 30, 2017 2:30 AM (in response to siddharth soam)ok , then we can combine the two expressions and try
IF(H1='Previous Completed Quarter',Sum({<Quarters={$(=Concat(Distinct Quarters-1,','))}[Service Rev]),Sum([Service Rev]))
you may need to attach your qvf file if it still doesn't work
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 3:59 AM (in response to dave liu)Qvf in attachments.
-
CBU dashboard_new.qvf 320.0 K
-
Re: How to read multiple values from a filter pane
dave liu Oct 30, 2017 4:20 AM (in response to siddharth soam)sorry , I typed wrongly ,this would be ok
-
CBU dashboard_new.qvf 320.0 K
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 5:06 AM (in response to dave liu) -
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 5:17 AM (in response to dave liu)Thanks dave looked into the wrong file..:)... But not able to change data by altering accounting period, when I change the expression to this
IF(H1='Recent Completed Quarter' ,Sum([Service Rev]),Sum({<Quaters={$(=Concat(Distinct Quaters-1,','))}, [Accounting Period]={$(=Concat(Distinct [Accounting Period]-3,','))}>}[Service Rev]))
No data shows up under Q1 . Using your expression I am able to get Q1 under recent but when I change the accounting period(month) under a quarter ,it shows null value. I want that when I select quarter Q2 and accounting period 4,5 under recent ,it shows me quarter 1 , accounting period 1,2 under previous header.
-
Re: How to read multiple values from a filter pane
dave liu Oct 30, 2017 6:00 AM (in response to siddharth soam)oh ~ I got you see this
btw , if you don't select anything ,"pervious completed quarter" will show Q1+Q2+Q3 data
-
CBU dashboard_new.qvf 320.0 K
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 30, 2017 6:29 AM (in response to dave liu)Thanks Lou Needed this desperately ...
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 31, 2017 1:08 AM (in response to dave liu)Hi Lau,
I am also having some trouble putting in condition for displaying year-2016 Quarter 4 data in previous when user selects fiscal year-2017 and quarter 1. Can you tell me where I have to put the if condition ?
Thanks in advance. Appreciate your help and patience on this
-
Re: How to read multiple values from a filter pane
dave liu Oct 31, 2017 2:12 AM (in response to siddharth soam)Well , I see
this will be quite different from what we did, I think we'd better figure it out relying on a better data set
so plz attach your data source file which named "FY16.xlsx" and "FY17.xlsx" in my view
-
Re: How to read multiple values from a filter pane
siddharth soam Oct 31, 2017 2:57 AM (in response to dave liu)Hi Lau,
Got it after trying certain possibilities , simple if condition outside our measure made it to work
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Re: How to read multiple values from a filter pane
Andrea Gigliotti Oct 27, 2017 6:38 AM (in response to siddharth soam)maybe this:
=sum( {< [counting period] = {">=$((=min([counting period])-( GetSelectedCount([counting period])-1 ) ))<=$(=min([counting period]))"} >} revenue )