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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
kien79
New Member

measure to calculate the difference from non-date columns

Hi Experts. I have the data as below which I'd like to create a measure to dynamically calculate the difference vs. the previous week. Once I add new data of the new week, the difference will be calculated automatically. Thing is the week is text format. Also, I would like to add a chart to show the differences between the current and previous week, in which it would be great if I can select and view top N categories with big changes. Can you help? Thank youData table.JPG

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hi! Ideally, the data will be flattened so that each week is not a new column (it will have a date), but a new row; your semantic model will be in a star schema format with a date table the date from your fact will connect to the date in the dim table and the dim table will say the week number, then you can follow this article to help with the time intelligence measures to get your WoW. Week-Based Time Intelligence in DAX - SQLBI





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

Proud to be a Super User!





View solution in original post

1 REPLY 1
audreygerred
Super User
Super User

Hi! Ideally, the data will be flattened so that each week is not a new column (it will have a date), but a new row; your semantic model will be in a star schema format with a date table the date from your fact will connect to the date in the dim table and the dim table will say the week number, then you can follow this article to help with the time intelligence measures to get your WoW. Week-Based Time Intelligence in DAX - SQLBI





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

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors