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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Dax Query for Table Visual

Hi!

 

I am creating a DAX Query for mutiple operations like we do by cell refrencing in Excel. My table is 

 

 

Prev YearRateY1 Y2 Y3Y4Y5Y6G1G2G3G4G5G6A1A2A3A4A5A6
830.55      000.0138305320.3524906630.18745098 0.0046122120.0487844170.0973766660.04750.113431373 
  45                 
  4544                
  656560               
  56565145              
  5453534620             
  505045452019            
  262626221811            

 

 

From this table, my first calc is Y1 Col - 1st cell value (Which is a missing) should be Prev Year * Rate = Which gives 45.65 - after rounding 46

2nd Calculation is, Y2 1st cell should be - 45 (Y1 2nd Cell) * (1-(G1 - A1)))

3rdCalculation is, Y3 1st cell should be - 44 (Y2 3rd Cell) * (1-(G2 - A2)))

4th  Calculation is, Y4 1st cell should be - 60 (Y3 4th Cell) * (1-(G3 - A3)))

5th Calculation is, Y5 1st cell should be - 45 (Y4 5th Cell) * (1-(G4 - A4)))

6th Calculation is, Y6 1st cell should be - 20 (Y5 6th Cell) * (1-(G5 - A5)))

 

 

At last, I should be showing only the 1st row with the results of y1 - y6 calculations and its total. 

 

I need to make sure that I should be able to slice the data by rates, Prev Year and G1-G6 and A1-A6 in What if parameters.

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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