Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
We are experiencing a problem in creating one of our indicators in Power BI.
We have a dataset with two date columns and a status column (FECHA_CIERRE, FECHA, and ESTADO). We filter by the closure date, which means our status, which can be either ongoing or closed, only shows the actions that are closed, causing the ongoing ones to disappear. We want to know if it's possible to create a DAX measure that considers the month difference between FECHA and FECHA_CIERRE, assigning a 1 for each month of difference. This would allow us to sum it up and create a bar chart with both ongoing and closed actions. However, we are unable to make this 1 a value for each month; instead, it becomes a fixed value for each month.
Attached here is an Excel image of the model to help you understand the dataset and what we are trying to achieve.
Thanks.
Solved! Go to Solution.
Hello @jesusssss,
if this is the desired output , please follow the below stesp :
step 1 ; create a calendar table :
in my sample , i have create it not the best practice way, just to work on it :
step 4 : link datetable to your table on date column.
step 5 : create the visual with the required columns , ( keep in mind that the start date in the visual should read from datatable )
step 6 :
write this measure :
Hello @jesusssss,
if this is the desired output , please follow the below stesp :
step 1 ; create a calendar table :
in my sample , i have create it not the best practice way, just to work on it :
step 4 : link datetable to your table on date column.
step 5 : create the visual with the required columns , ( keep in mind that the start date in the visual should read from datatable )
step 6 :
write this measure :
Hi @jesusssss it should be new CALCULATED column, this is standard Power BI featues so you have option.
Proud to be a Super User!
Hi @jesusssss there is no 14.12.
Simple if column is blank could solve your problem in new column?
Proud to be a Super User!
Hi,
I have tried but I am also not capable of adding a new column, do you know any solution?
Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |