Blog

Power BI

Automatically create measures with DAX user-defined functions

YES! Public preview is finally here, and DAX UDFs have the potential to change how we write DAX in a big way. If you don't know what UDFs are, head over to Microsoft (and SQLBI of course) and learn everything they have said about them first, no point in repeating it here. If you want[...]
Leer post →
Power BI

Two new C# Scripts for PBIR: Replace Fields & Open Visual Json files

In comparison with my previous post, this one was an absolute breeze to write. Just an idea, some little tweaking with ChatGPT and GitHub CoPilot. Both come from the daily little miseries of daily with Power BI. One is replacing fields in a visual, the other one is finding the visual.json file of ce...
Leer post →
Power BI, Fabric

Making a Report Bilingual: The full story (Part 2)

Hello again! Before life gets in the way, let's try to wrap this up. If you have not red the first part, please do so before reading this one as some of the outputs of that part are necessary for the process we'll see here. In this post I want to tackle the actual report.[...]
Leer post →
Fabric

Making a Report Bilingual: The full story (Part 1)

Hello hello, It's been quite a few months since I last published. As I was going down the rabbit hole at work I thought it would be a good idea to blog my way through the tunnel. It turns out it was not. The sheer complexity of the task and some big gotchas rendered the[...]
Leer post →
Power BI

Building a Referential Integrity Report Page with a C# Script

Hello again! I'm back with the other use case I have in mind for Report-layer scripts. If you haven't read yet my previous blog post I recommend you do this now as we'll be building on that with a more complex use case. When I first managed to develop C# in visual studio I rushed[...]
Leer post →
Power BI

C# Scripting the report layer with Tabular Editor

Hello! Today's post is quite special for me as I wished that this day would come. When I wrote the article to generate the measures for a dynamic data problems button there was a section that read "So, let’s build this button then. This part, unfortunately cannot be scripted, so we’ll need to work a...
Leer post →
Power BI

Comparing arbitrary date ranges in Power BI

Hello there! Today's post comes from an actual requirement that I had heard before but never handled directly. There is some nifty DAX and modeling so lets get to it! (at the very end you will find a script to achieve the end result with no effort! but don't be greedy and read along to[...]
Leer post →
Power BI

Showing the path of the selected point in a scatter chart

UPDATE: I was kindly asked by Kerry Kolosko to make a Work-Out-Wednesday challenge for this chart, and when I did, I realized that it's much more simple than I laid out on this article. I keep as proof that finding the best approach is an iterative process! Building the model from scratch also helps...
Leer post →
Esbrina

Stickers, so cool

Hello everyone With sqlbits, Easter holidays and a bunch of other stuff i haven't posted in a while, but I'm back! Full disclosure, this is a sponsored post, but for a good cause, you'll see in a minute. If you follow me on Twitter you'll know I like swag almost as much as Johnny Winter,[...]
Leer post →
Power BI

Reversing selection on a slicer (sort of)

Hello! The other day on the PUG Barcelona whatsapp group there was a question regarding the possibility of reversing the selection on a slicer, with a single click. Apparently this is something you can do on Qlik and the fellow member was trying to migrate that to Power BI as the users are used to[....
Leer post →
Power BI

"I want it all in one page"

This is a very recurring topic. You carefully build a dataset semantic model for each business process, and when it all looks good in your Power BI App, some top brass requests a top level summary with key visuals from pretty much all the different models. And they ask for it like for tomorrow. What...
Leer post →
Power BI, PowerShell

Building my first near real time model in Power BI

Hello! Today we leave PowerApps aside, but we head into yet another area way out of my confort zone: Programmatic creation and refresh of custom M Partitions! this is not something I really wanted to do, but I found myself with no other option available. Are you ready? Let's do it. As the title says...
Leer post →
Power BI

Detecting selection on field parameters and calculation groups

Hello, The other day I was watching a video from SQLBI and for the first time I had a surprising thought. I thought "Hey, I would not do it like this". In DAX as in other languages, there are some things that are just a matter of style, sometimes is more. Which case is this,[...]
Leer post →
Fabric, Governance, PowerApps, PowerAutomate

Orchestrating Dataset Refreshes with Power Automate and Power Apps (Part 2)

Hello hello, before the topic cools down, let's complete what we started the other day. As a quick recap we built a Power Automate flow that will launch refreshes of Power BI datasets only when certain ETL jobs of the server have successfully completed. And not only that, those datasets that read fr...
Leer post →
Power BI

Making single measure stacked column chart keep multi-measure color

I know, it's a terrible title, but it's the best I could come up with. This blog post is to explain a workaround for a behavior I detected while playing with a field parameter (all measures) and a stacked column chart. The problem is as follows: If you have more than one measure in the[...]
Leer post →
Power BI

Industrializing Calculation Groups

Hello! Today (well yesterday by the time I have finished writing this) saw a great use case of calculation groups and I wished I had come up with the idea myself because it's awesome and something that I've come across sometimes. In a table there's a breakdown by month, and at the total they want[.....
Leer post →
Power BI

The Calculation Group Paradox

Hello, today I'm not writing any type of tutorial. I just want to share a weird behavior I have found in calculation groups, hoping that those that really know about the inner workings can help us comprehend why they behave like that. Calculation groups can be seen as groups of pairs of DAX expressi...
Leer post →