<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Nicola Simboli — Writing</title><link>https://www.simboli.eu/writing/</link><description>Practical guides on SQL, Snowflake, Tableau, AWS and Python.</description><language>en</language><item><title>What is the dbt Semantic Layer (and when you don't need it)</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/what-is-the-dbt-semantic-layer/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/what-is-the-dbt-semantic-layer/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>Metrics defined once in YAML, SQL generated at query time by MetricFlow, served to BI tools through APIs. What you get, what it costs, and when a table is enough.</description></item><item><title>PRE_AGG vs PRE_FILTER explained in QuickSight</title><link>https://www.simboli.eu/writing/quicksight/pre-agg-vs-pre-filter-explained/</link><guid>https://www.simboli.eu/writing/quicksight/pre-agg-vs-pre-filter-explained/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>Amazon QuickSight</category><description>Where each calculation level sits in QuickSight's order of evaluation, which filters it sees, and how to choose between them.</description></item><item><title>How to write your first macro in dbt</title><link>https://www.simboli.eu/writing/dbt-core/write-your-first-macro/</link><guid>https://www.simboli.eu/writing/dbt-core/write-your-first-macro/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Turn a repeated piece of SQL into a macro with arguments, keep the compiled SQL clean, and run a macro on its own with run-operation.</description></item><item><title>How to write an IF / ELSE calculated field in QuickSight</title><link>https://www.simboli.eu/writing/quicksight/write-an-if-else-calculated-field/</link><guid>https://www.simboli.eu/writing/quicksight/write-an-if-else-calculated-field/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>Amazon QuickSight</category><description>ifelse with one or many conditions, AND and OR, switch and in for lists of values, and the rules about types and aggregations.</description></item><item><title>How to write a profiles.yml for Snowflake</title><link>https://www.simboli.eu/writing/dbt-core/write-a-profiles-yml-for-snowflake/</link><guid>https://www.simboli.eu/writing/dbt-core/write-a-profiles-yml-for-snowflake/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>A profile with a development target for you and a production target for the scheduler, what each field does, and where dbt looks for the file.</description></item><item><title>How to write a custom SQL test in dbt</title><link>https://www.simboli.eu/writing/dbt-core/write-a-custom-sql-test/</link><guid>https://www.simboli.eu/writing/dbt-core/write-a-custom-sql-test/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>A singular test for a one-off business rule, and a generic test you can reuse on any column with arguments.</description></item><item><title>How to use if/else in a dbt model (Jinja)</title><link>https://www.simboli.eu/writing/dbt-core/use-if-else-in-a-model/</link><guid>https://www.simboli.eu/writing/dbt-core/use-if-else-in-a-model/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Change a model's SQL by target, variable or run type with Jinja if, and know when a SQL CASE is the better tool.</description></item><item><title>How to use environment variables in profiles.yml (env_var)</title><link>https://www.simboli.eu/writing/dbt-core/use-environment-variables-in-profiles-yml/</link><guid>https://www.simboli.eu/writing/dbt-core/use-environment-variables-in-profiles-yml/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Read credentials and settings from the environment with env_var, with defaults, numbers, booleans and secret variables.</description></item><item><title>How to use dbt metrics in Google Sheets</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/use-dbt-metrics-in-google-sheets/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/use-dbt-metrics-in-google-sheets/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>The Semantic Layer for Sheets add-on - connection details, the Query Builder, saved selections that refresh on load, saved queries, and the limits to know.</description></item><item><title>How to use a parameter inside a calculated field in QuickSight</title><link>https://www.simboli.eu/writing/quicksight/use-a-parameter-in-a-calculated-field/</link><guid>https://www.simboli.eu/writing/quicksight/use-a-parameter-in-a-calculated-field/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>Amazon QuickSight</category><description>Reference a parameter with ${Name} to let readers set a target, a date or a what-if value, and know the limits of multivalue parameters.</description></item><item><title>How to use a model in another model in dbt (ref vs source)</title><link>https://www.simboli.eu/writing/dbt-core/ref-vs-source/</link><guid>https://www.simboli.eu/writing/dbt-core/ref-vs-source/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>ref() for what dbt builds, source() for what something else loads, and why neither should be replaced by a table name.</description></item><item><title>How to use a fiscal calendar in the dbt time spine</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/use-a-fiscal-calendar-in-the-time-spine/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/use-a-fiscal-calendar-in-the-time-spine/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>Custom granularities in the time spine give metric_time__fiscal_year for a year that starts in April. What works with them, what doesn't yet (grain_to_date), and fiscal YTD with a filter.</description></item><item><title>How to trigger a dbt Cloud job from the API</title><link>https://www.simboli.eu/writing/dbt-cloud/trigger-a-job-from-the-api/</link><guid>https://www.simboli.eu/writing/dbt-cloud/trigger-a-job-from-the-api/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Cloud</category><description>Start a job with one POST request, override its commands for a single run, and poll the run until it finishes.</description></item><item><title>How to test that a column is unique and not null in dbt</title><link>https://www.simboli.eu/writing/dbt-core/test-unique-and-not-null/</link><guid>https://www.simboli.eu/writing/dbt-core/test-unique-and-not-null/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>The two tests every key column should have, how to run them, and how to see the rows that make them fail.</description></item><item><title>How to test a combination of columns is unique in dbt (dbt_utils)</title><link>https://www.simboli.eu/writing/dbt-core/test-a-combination-of-columns-is-unique/</link><guid>https://www.simboli.eu/writing/dbt-core/test-a-combination-of-columns-is-unique/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Test a key made of several columns with dbt_utils, or without packages using an expression or a custom test.</description></item><item><title>How to sum only some rows in QuickSight</title><link>https://www.simboli.eu/writing/quicksight/sum-only-some-rows/</link><guid>https://www.simboli.eu/writing/quicksight/sum-only-some-rows/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>Amazon QuickSight</category><description>sumIf for conditional totals and shares, the equivalent sum(ifelse(...)), and what to do when the measure is a calculation.</description></item><item><title>How to split a string and take one part in QuickSight</title><link>https://www.simboli.eu/writing/quicksight/split-a-string-and-take-one-part/</link><guid>https://www.simboli.eu/writing/quicksight/split-a-string-and-take-one-part/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>Amazon QuickSight</category><description>split returns the nth part of a delimited string, but only in data preparation. In analyses, locate with left, right and substring does the job.</description></item><item><title>How to show zero instead of NULL for a metric in dbt (fill_nulls_with, join_to_timespine)</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/show-zero-instead-of-null/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/show-zero-instead-of-null/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>fill_nulls_with fills rows that exist, join_to_timespine adds the missing dates, and you usually need both. Plus a dbt Core 1.12 parser gap and the coalesce workaround.</description></item><item><title>How to set up the dbt Semantic Layer in dbt Cloud</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/set-up-the-semantic-layer-in-dbt-cloud/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/set-up-the-semantic-layer-in-dbt-cloud/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>From metrics in a branch to a BI tool that can query them - the deploy job, the Semantic Layer configuration, credentials, tokens and connection details.</description></item><item><title>How to set up a CI job on pull requests in dbt Cloud</title><link>https://www.simboli.eu/writing/dbt-cloud/set-up-a-ci-job/</link><guid>https://www.simboli.eu/writing/dbt-cloud/set-up-a-ci-job/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Cloud</category><description>Build and test the models a pull request changes, in a temporary schema, before anything is merged.</description></item><item><title>How to set the warehouse per model in dbt on Snowflake</title><link>https://www.simboli.eu/writing/dbt-core/set-the-warehouse-per-model/</link><guid>https://www.simboli.eu/writing/dbt-core/set-the-warehouse-per-model/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Run heavy models on a larger warehouse with snowflake_warehouse, for one model, a folder or only in production.</description></item><item><title>How to set the default time dimension of a semantic model (agg_time_dimension)</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/set-the-default-time-dimension/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/set-the-default-time-dimension/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>agg_time_dimension decides which date metric_time means for each metric. Set it per model, override it per metric, and know when to group by the dimension itself.</description></item><item><title>How to see the compiled SQL of a model in dbt</title><link>https://www.simboli.eu/writing/dbt-core/see-the-compiled-sql-of-a-model/</link><guid>https://www.simboli.eu/writing/dbt-core/see-the-compiled-sql-of-a-model/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Core</category><description>Print the SQL dbt generates from a model's Jinja, find it in the target folder, and see the statement dbt actually ran.</description></item><item><title>How to see the SQL generated by the dbt Semantic Layer (--compile)</title><link>https://www.simboli.eu/writing/dbt-semantic-layer/see-the-sql-generated-by-the-semantic-layer/</link><guid>https://www.simboli.eu/writing/dbt-semantic-layer/see-the-sql-generated-by-the-semantic-layer/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Semantic Layer</category><description>--compile with dbt sl and --explain with mf print the SQL the Semantic Layer runs. How to read it - CTEs per model, one subquery per metric, filters, joins and the final combination.</description></item><item><title>How to schedule a job in dbt Cloud</title><link>https://www.simboli.eu/writing/dbt-cloud/schedule-a-job/</link><guid>https://www.simboli.eu/writing/dbt-cloud/schedule-a-job/</guid><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><category>dbt Cloud</category><description>Create a deploy job that runs on intervals, at fixed hours or on a cron schedule, and know why its times are always in UTC.</description></item></channel></rss>
