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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Ahmad_K
Frequent Visitor

Establish a calculated measure with date hierarchy .

Hello , 

my data represented by two columns , Quantity and date . 

I have created a measure to calculate the Variation coefficent as below : 

Ahmad_K_0-1676877260710.png

this calculates it based on daily hierarchy as below :

Ahmad_K_1-1676877708121.png

 

my aim is to have it calculated the variation %  based on weekly , monthly and  yearly as well  .

I need 3 more measures that calculates variation % from week to week , month to month and year to year .

 

how can i write this in DAX ?

Thanks . 

 

 

 

3 REPLIES 3
Ahmad_K
Frequent Visitor

 

Hello , any other help from the community ? 

amitchandak
Super User
Super User

@Ahmad_K , You can use time intelligence to get such measures

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Thanks but I didn't get it for my case . please just elaborate with one example  , let it be month to month variation % . 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors