Hi Community,
I need your help to get the work rotation schedule like in the example below. I have tried using a custom column in the query editor, but without luck. Any suggestions?
Solved! Go to Solution.
Hi @Eivindeiki ,
If you use Matrix ,it with some limitations,and I suggest you to merge the column "off""on""start_date""end_date".
base table:
ON|OFF|START|END = TableB[On]&"|"&TableB[off] &"|"&TableB[start]&"|"&TableB[end]
Base on tableA create the following tables:
Tableon = CALCULATETABLE(TableA,FILTER(TableA,TableA[on/off]="on"))
Tableoff = CALCULATETABLE(TableA,FILTER(TableA,TableA[on/off]="off"))
Then use the below measure:
xvalue =
IF(LOOKUPVALUE(Tableoff[Date],Tableoff[Date],MAX(TableB[Date]))<>blank(),"x",IF(LOOKUPVALUE(Tableon[Date],Tableon[Date],MAX(TableB[Date]))<>blank(),"-",BLANK()))
color =
IF(LOOKUPVALUE(Tableon[Date],Tableon[Date],MAX(TableB[Date]))<>blank(),"Orange",BLANK())
Create matrix and set color:
Final output:
You could download my pbix file if you need!
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @Eivindeiki ,
If you use Matrix ,it with some limitations,and I suggest you to merge the column "off""on""start_date""end_date".
base table:
ON|OFF|START|END = TableB[On]&"|"&TableB[off] &"|"&TableB[start]&"|"&TableB[end]
Base on tableA create the following tables:
Tableon = CALCULATETABLE(TableA,FILTER(TableA,TableA[on/off]="on"))
Tableoff = CALCULATETABLE(TableA,FILTER(TableA,TableA[on/off]="off"))
Then use the below measure:
xvalue =
IF(LOOKUPVALUE(Tableoff[Date],Tableoff[Date],MAX(TableB[Date]))<>blank(),"x",IF(LOOKUPVALUE(Tableon[Date],Tableon[Date],MAX(TableB[Date]))<>blank(),"-",BLANK()))
color =
IF(LOOKUPVALUE(Tableon[Date],Tableon[Date],MAX(TableB[Date]))<>blank(),"Orange",BLANK())
Create matrix and set color:
Final output:
You could download my pbix file if you need!
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
@Eivindeiki , you have try a approch like
Matrix as Project plan Visual: https://youtu.be/R25QoiyoSVs
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
360 | |
105 | |
63 | |
51 | |
49 |
User | Count |
---|---|
335 | |
121 | |
83 | |
68 | |
62 |