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
JMWDBA
Advocate II
Advocate II

Location Revenue Assignment

So in the attached image I have a sample from a spreadsheet.  Each student has a "Student Campus Location" that is considered their home location.  They can take courses at another location and it would always be reflected in the column "Course Campus Location".  What I am trying to do is when the "Student Campus Location" is the same as "Course Campus Location" Calculate the tuition and assign it to that campus location.  But when the "Student Campus Location" is not equal to the "Course Campus Location" then I want to calculate and assign the tuition to the "Course Campus Location".  How would I do this?

 

2017-05-14_13-03-33.jpg

3 REPLIES 3
v-caliao-msft
Employee
Employee

@JMWDBA,

 

For your sample data, could add a column manually which show your expected result? So that we can make further analysis. Besides, please provide the sample data as a file instead of a image, so that we can make further analysis.

 

Regards,

Charlie Liao

Greg_Deckler
Super User
Super User

What mechanism are you proposing for assigning it to a course campus location?

 

For the first part of your question, you can get the campus course location total by the following:

 

Column = IF([Student Campus Location] = [Course Campus Location],[Course Tuiton],0)

The total of that column would give you the total for the student's tuiton at their campus location. Now, you could create similar columns, one for each course location and fill them with similar formulas.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I am not certain I understand the question about mechanism.  

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.