Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
bonjourposte
Advocate III
Advocate III

Calculated Duration column "turning off" some of my visualizations built on other columns

I've got a column of dates where an inspection is due.  I used the "duration" function to create a new column to termine by how many days the inspection is due.    

 

bonjourposte_0-1711037459192.png

 

The resulting calculated column has a has a data type of 123-ABC.  So I change it to duration because I need to do some conditional formatting, but when i change it to duration and press close and apply, half my visualizations (that do not rely on that column at all) go blank.  They're going blank, I suspect, because of another table- the fact table- that is on the one side of a 1-many relationship (with some other tables in between).  It has gone blank for whatever reason, which I feel like is a separate problem which I'll be posting about, but does anyone know why I wouldn't be able to turn my difference of days into a whole number, decimal number, or duration?

 

ie. 

bonjourposte_1-1711038511208.png

Thanks.

 

 

1 ACCEPTED SOLUTION

Thanks, yes I could do it, but then when I closed and applied, it made half my visualizations dissappear, which was weird because that column had nothing to do with those tables.  

 

Although I think I may have solved it by just making a calculated table in the Table view using DATEDIFF.  I think this will work.  

View solution in original post

2 REPLIES 2
wini_R
Resolver III
Resolver III

Hi @bonjourposte,

 

Not sure why you would not be able to change the data type for your duration column. I can easily do this:

 

starting with this column:

wini_R_0-1711042732569.png

 

when I select Duration > Total Days I get decimal number data type

wini_R_1-1711042918911.png

What's the data type in the M code for that step on your end?

wini_R_2-1711043215657.png

 


 

Thanks, yes I could do it, but then when I closed and applied, it made half my visualizations dissappear, which was weird because that column had nothing to do with those tables.  

 

Although I think I may have solved it by just making a calculated table in the Table view using DATEDIFF.  I think this will work.  

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.