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
CoonPageDub
Frequent Visitor

Calculated Column

Howdy Folks!

 

I need help with a technique to change a varaiable on a calculated column. I have a table that provides demographic information (15 columns) associated with individual properties (30,000). 

 

Right now, here is my process for scoring:

 

1.) Rank each property from 1-30,000 using the RankX function

2.) Calculate the percentile for each building from 0.00-1.00.

3.) Multiply each of these percentiles by 100 to get a "score" for each category

4.) Add each of the 15 categories/columns together to get a "demographic score." 

5.) I'm adding the demographic score to other scores in my model associated with the buildings.

 

I need to add weights/parameters from 10%-100% to each of the 15 categories so I can test the outcomes accordingly. I initially did this all with measures, but whenever I added the demographic score to other scores, my computer would run out of RAM. I just upgraded to get 64 MB of RAM. 

 

So I think I need to use calculated columns, and then use SUMMARIZE to store demographic score with each iteration, rather than measures.

 

Therefore my question is: How can I add variables/parameters to each of my 15 calculated columns? Measures are not an option. Keep in mind that I do not need to do this dynamically; I can reload or update another query if need be.

 

Thank you!

 

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @CoonPageDub ,

 

Can you please share some sample data and your expected output? I will understand clearly about your requirement. Thx.

 

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

Great! I need help writing the formula to calculate the average vacancy for all buildings within the subject building's Score that are 4% higher and 4% lower of the subject building.

 

Building = Specific Property

Group = Groupings of properties

Score = Score generated via other metrics and stored as a measure

Vacancy = generated from another table

 

 

BuildingGroupScoreVacancy %
50 SmithB120014%
3737 SpeedsterB115040%
1200 BroadwayB100025%
1900 Main StB9953%
1800 PeachtreeB96210%
4401 Roger St.B9459%
6 Center StB94440%
123 Sesame                  B             940                   25%
1 A St.A125511%
2 B StA12523%
3 C LaneA12098%
20 Kelly CircleA117517%
1000 Main StA11557%
2727 AllenA11531%
1276 KermitA9901%
1300 CongressA96016%
1333 WestwayA95716%
84 ElmoA9403%
11212 HondaA93510%
711 Right A93216%
888 TripleA93216%
76666 RalphA9209%

 

For example the value to be returned for 4401 Roger St. would be 17%. Keep in mind this needs to be done within the Group, not for all buildings, just the buildings that are 4% higher and lower than the subject. 4401 Roger St.'s building score is 945, so 104% = 983. The upper limit building would be 1900 Main. That score is 995, so that differnce of 12 is smaller than 1800 Peachtree's score of 962 (difference of 21 from 983).  You then would do the same calculation for the lower limit. Finally, you average the 5 buildings between those two 1900 Main to 123 Sesame and get 17. 

 

Another example is 1300 Congresss and the value returned would be 11%. 

 

Does this help? 

 

 

 

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.