Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I have 3 fields Period, Bucket, Ecmployee code.
Scenario: here 2 months period, it is compare with previous Month.
Aug-Red (102)
Sep-Amber (102) based on Employee code equal to then display Employee count in below output. and both period green to green it is come ot required.
Period Bucket Employee Code
Aug-2018 Red 102
Aug-2018 Amber 105
Aug-2018 Green 223
Period Bucket Employee Code
Sep-2018 Amber 102
Sep-2018 Green 105
Sep-2018 Red 223
output:
when select Sept Period filter: Red to Amber, Amber to green, Red to green
Aug - Sept- Employee Code - equal -- display Count.
How to create a cal?
Solved! Go to Solution.
1.add column "netxMonth" in table
nextMonth = DATEADD('table'[Period];1;MONTH)
2. lookupvalue and concat
bucketNexMonth = IF(ISBLANK('table'[nextMonth]);BLANK();'table'[Bucket]&" to "&LOOKUPVALUE('table'[Bucket];'table'[Employee Code];'table'[Employee Code];'table'[Period];'table'[nextMonth]))
try this
1.add column "netxMonth" in table
nextMonth = DATEADD('table'[Period];1;MONTH)
2. lookupvalue and concat
bucketNexMonth = IF(ISBLANK('table'[nextMonth]);BLANK();'table'[Bucket]&" to "&LOOKUPVALUE('table'[Bucket];'table'[Employee Code];'table'[Employee Code];'table'[Period];'table'[nextMonth]))
try this
User | Count |
---|---|
84 | |
76 | |
72 | |
47 | |
37 |
User | Count |
---|---|
111 | |
56 | |
51 | |
42 | |
42 |