cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Namoh
Post Partisan
Post Partisan

How to "Replace-All" a Date-attribute with another Date-attribute

Hi, I have a huge issue.

 

In the past when I started with my Power Bi report I linked a CALENDAR-table (excel).

 

I've used the DATE-field from this Table in Measures and Graphs.

 

Apparently this was a Date-table which isn't being updated anymore, and I should have used a DateTable. 

 

I've inserted the DateTable into my pbix-file and I've created all Relationships with the new DateTable which already existed with the old CALENDAR-table.

 

I now need to replace the CALENDAR.DATE (only field used currently from the CALENDAR-table) reference in all my Measures, Graphs etc with the DateTable.Date.

 

Is there an easy way to do this, or is this a manually action (meaning going through all Measures and Graphs one-by-one to change and hope everything shows the same as it does now)?

 

If possible I would like to do a "Replace-All" CALENDAR.DATE -> DateTable.Date with keeping my Graphs as they're.

 

Hope someone can help me.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Hi Namoh,

You could give the Power BI Helper - RADACAD a try. I just tested it and it has an option to export the unused columns/tables from your reports. Below you'll find a reference to the output based on by test file:

Power BI helper optionsPower BI helper optionsOutputOutput

Regards,

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
timg
Super User
Super User

Hi Namon,

You can use DAX studio to extract a list of all measures in your model. This could help finding all the references to the old table more easily. However, the actual replacement of those references will still be a manual task as far as I know. Nevertheless, if you're interested in getting the list of measure/formulas you'll find an explanation of how to do so here: How to view and retrieve all measures? - Power BI - Data Bear - Power BI Training and Consulting





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Namoh
Post Partisan
Post Partisan

Hi timg, thanks for your reply.

I've used DAX studio and replaced all CALENDAR-table reference with the DateTable reference.

Is there also a way (with DAX studio) to find all attributes used in the filters/visualisations/etc from the CALENDAR-table? 

Hi Namoh,

You could give the Power BI Helper - RADACAD a try. I just tested it and it has an option to export the unused columns/tables from your reports. Below you'll find a reference to the output based on by test file:

Power BI helper optionsPower BI helper optionsOutputOutput

Regards,

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Namoh , Power BI, I doubt there is an easy way. All of them will error if you remove the table.

 

May be some external tool can help



New Power BI Features
Datamarts: https://youtu.be/8tskWsJTEpg
Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin !! Proud to be a Super User!
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors