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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
b3nkumar
New Member

Need urgent help on creating a report

Can anyone please help how I can reach to the output:-


Please refer data and output detail as below:-

 Data       
  Balance1Balance2Metrics1Metrics2   
Friday4/14/2023100020001020   
Monday4/17/20231001200011121   
Tuesday4/18/20231002200021222   
Wednesday4/19/20231003200031323   
Thursday4/20/20231004200041424   
Friday4/21/20231005200051525   
Monday4/24/20231008200081828   
Tuesday4/25/20231009200091929   
Wednesday4/26/20231010200102030   
Thursday4/27/20231011200112131   
Friday4/28/20231012200122232   
         
         
 Output       
         
  Balance1 DeltaBalance2 DeltaMetrics1 deltaMetrics2 delta   
 4/28/20231012200122232   
 4/27/20231011200112131   
 current vs Prior11NA1   
 vs BaseNANA67   
         
 6 is resultant of delta from a static table value      
 7 is resultant of delta from a statis table value      
 NA is columns where delta are not required      
 only latest 2 dates data should be populated and delta between these but only for Weekdays/Non Holiday data   
1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @b3nkumar ,

 

The output you want looks like a matrix visual. However, I think latest 2 dates should come from [Date] column. So [Current vs Prior] and [vs Base] should be separate measures. I think they couldn be show in same field with your current data model.

If you want to calculate latest two days without weekends/holidays, you can create a calendar table with continuous dates and determind the days in it.

For reference:

Use DAX to create a calendar table with holidays - Microsoft Power BI Community

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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