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
troystyle
Regular Visitor

Dax Formula functions like a V LOOKUP

Working on a dashboard and need help with two calculations, tried different solutions but all to no avail.

Using the sample of a big dataset indicated below. the goal is to create two dax formulas with similar functions. below are the parameters

  • Status ID and Program are related
  • Census term changes and indicates the quarter the actual data was captured
  • First term indicates the first quarter that the Status ID was recorded into the database.
  • Program changes for some Status ID.
  • For some census term, the status ID might not show up at all.

Calculation1: Dax formula that cycles through big dataset and looks for each status ID/program relationship and calculate the sum of all the status ID as the census term changes.

Calculation 2: Dax formula that cycles through the dataset and looks for the each status ID and calculate the sum of all the status iD as the census term changes.

 

Any help will be greatly appreciated.

Thanks.

 

Status IDProgramFirst TermCensus Term
1694Science08/FA09/FA
2095Science07/FA09/FA
2444Science06/FA09/FA
2758Arts08/SP09/FA
3597Arts94/FA09/FA
4761Politics05/WI09/FA
6329Politics94/SP09/FA
7191Politics96/FA09/FA
4578Science05/WI09/FA
4789Science94/SP09/FA
5000Science96/FA09/FA
5211Science05/WI09/FA
5422Arts94/SP09/FA
5633Arts96/FA09/FA
5844Politics05/WI09/FA
6055Politics94/SP09/FA
6266Politics96/FA09/FA
1694Politics08/FA10/FA
2095Politics07/FA10/FA
2444Politics06/FA10/FA
2758Politics08/SP10/FA
3597Politics94/FA10/FA
4761Politics05/WI10/FA
6329Politics94/SP10/FA
7191Politics96/FA10/FA
4578Science05/WI10/FA
4789Science94/SP10/FA
5000Science96/FA10/FA
5211Science05/WI10/FA
5422Arts94/SP10/FA
5633Arts96/FA10/FA
5844Politics05/WI10/FA
6055Politics94/SP10/FA
6266Politics96/FA10/FA
3 REPLIES 3
Sean
Community Champion
Community Champion

@troystyle what are the results you are looking for?

Look in the picture Measure 1 and Measure 2 - are those the numbers you are looking for?

Measures.png

Realised the erro was mine by not explaining properly

 

What is the expected output?

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.