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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors