# Information for CSV Formatting and Formulas

**URL:** <https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867>\
**Category:** Help Topics\
**Created:** [July 7, 2015, 12:21pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867 "2015-07-07T12:21:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SundancePioneer](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/sundancepioneer/32/5402_2.png) [@SundancePioneer](https://community.xibo.org.uk/u/SundancePioneer)\
**Post date:** [July 7, 2015, 12:21pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/1 "2015-07-07T12:21:33Z")

</div>

Hi Xibo People,

i’m currently struggling with importing a CSV file for creating a class and room schedule display. Is there any source of information on how to correctly format the CSV file for the use in Xibo’s DataSets and how you can use Formulas to only display certain portions depending on the time?

(EDIT: Sorry for confusing the Formulas with the Filtering in the ticker settings - i’m looking for things like the NOW() command - where can i find more of these filters?)

I found the very useful tutorial on the Meeting Room Bookings, but i can’t find any information on formatting and formulas…

Any help or information is greatly appreciated - thanks in advance!

Best regards,

Sundance

---

<div class="post-metadata">

**Author:** ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)\
**Post date:** [July 7, 2015, 1:19pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/2 "2015-07-07T13:19:02Z")

</div>

Hi Sundance,

It shouldn’t be a problem to correctly import your .csv file, what seems to be a problem here?  
as for the filter and order fields in ticker/dataset view they are using SQL syntax ie.

order: columnName or columnName DESC  
filter: Day = ‘Monday’ or as in this example NOW() \> StartTime AND NOW() \< EndTime

depends on what columns you have and what you want to achieve.  
You can have a look SQL functions if you want to know more.

Articles regarding datasets to read:  
[http://xibo.org.uk/manual/en/media\_datasets.html](http://xibo.org.uk/manual/en/media_datasets.html)  
[http://xibo.org.uk/manual/en/media\_module\_dataset\_view.html](http://xibo.org.uk/manual/en/media_module_dataset_view.html)  
[http://xibo.org.uk/manual/en/media\_module\_ticker.html](http://xibo.org.uk/manual/en/media_module_ticker.html)

thanks,  
Peter

---

<div class="post-metadata">

**Author:** ![SundancePioneer](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/sundancepioneer/32/5402_2.png) [@SundancePioneer](https://community.xibo.org.uk/u/SundancePioneer)\
**Post date:** [July 7, 2015, 1:42pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/3 "2015-07-07T13:42:10Z")

</div>

Hi Peter,

thank you for your quick reply and for pointing me to the SQL syntax, that’s part of what i was looking for.

I don’t quite understand the whole workflow of creating the dataset yet - i have a .csv file that contains date, room no., duration, teacher and subject in this order. I have uploaded the file, maybe you can take a look some time:

> **[Dropbox - Error](https://www.dropbox.com/s/b72jvqkm0femg7n/kursplan.csv?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

Now i want to map these 5 columns to the dataset in Xibo, to be able to display it in a Ticker for the schedule display (using the SQL filtering you mentioned above).

I have created a dataset and set the column order accordingly, but upon import of the .csv file, it maps everything into the first column…

What am i doing wrong?

Thanks again

Best Regards

---

<div class="post-metadata">

**Author:** ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)\
**Post date:** [July 7, 2015, 2:14pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/4 "2015-07-07T14:14:07Z")

</div>

Hi,

before you import your .csv file, you will need to add more columns to the dataset (5 in your case) give them proper names, so it will be easier for you to make order/filter later on.

 ![](https://community.xibo.org.uk/uploads/default/original/1X/345efae1901e94924b8c609b6643d7041ee0465b.png)  
When you will have 5 columns there, import your .csv file and it should be fine.

Like this (but you will want better column names 🙂 )

 ![](https://community.xibo.org.uk/uploads/default/original/1X/2bcb1a5ce6d78a7311f61964863a0b78d1d986ac.png)  
My CMS is in english so it has problems with Ü character, it should be fine for you and if not then you might want to use u or ue (I think that’s the way to write it without actual Ü character)

---

<div class="post-metadata">

**Author:** ![SundancePioneer](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/sundancepioneer/32/5402_2.png) [@SundancePioneer](https://community.xibo.org.uk/u/SundancePioneer)\
**Post date:** [July 7, 2015, 2:46pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/5 "2015-07-07T14:46:10Z")

</div>

Hi Peter,

thanks for taking the time to look into the file!

I had created 5 columns already actually, but upon import, i see the comma seperated files all in the first column:

 ![](https://community.xibo.org.uk/uploads/default/original/1X/792abcf02c1541c7be4c71174daeb744d29f927d.png) 

What import settings do i have to take care of before hitting “Import” - am i missing something? Or do the 5 columns need special settings? I leaved everything to default…

Thanks again

Best regards

Sundance

---

<div class="post-metadata">

**Author:** ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)\
**Post date:** [July 7, 2015, 3:21pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/6 "2015-07-07T15:21:40Z")

</div>

So, .csv file is basically text file with usually comma(,) separated fields.

When I opened it in my LibraOffice Calc it asked me how the fields are separated, then I selected comma (,) so it opened as it should then just save it and import that to Xibo.  
With [MS excel](https://support.office.com/en-za/article/Text-Import-Wizard-c5b02af6-fda1-4440-899f-f78bafe41857) or OpenOffice it would be the same/similar.

As for the columns, you can set the type if you want, but I left it as string and didn’t do anything to it.

I hope that this will help you 😄

---

<div class="post-metadata">

**Author:** ![SundancePioneer](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/sundancepioneer/32/5402_2.png) [@SundancePioneer](https://community.xibo.org.uk/u/SundancePioneer)\
**Post date:** [July 7, 2015, 5:16pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/7 "2015-07-07T17:16:33Z")

</div>

I actually found the reason it didn’t work, thanks for pointing me to using libre calc:

My german excel version automatically uses the semicolon as a delimiter on .csv export, while Xibo needs the classical comma delimiter to be able to seperate the data.

I saved it with commas and now everything works as expected - i read online ([click here)](http://stackoverflow.com/questions/10140999/csv-with-comma-or-semicolon) that the standard delimiter setting is depending on the system language settings, so i guess other poor germans might run into the same problem…

Thanks a lot for your kind help @Peter !!

Best regards

Sundance

---

<div class="post-metadata">

**Author:** ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)\
**Post date:** [March 4, 2020, 4:56pm UTC](https://community.xibo.org.uk/t/information-for-csv-formatting-and-formulas/2867/8 "2020-03-04T16:56:04Z")

</div>

Closed on March 4, 2020, 4:56pm UTC


