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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Doing Pivot Table calculations on raw data

I have a bunch of raw, unpivoted data over 20Years for franchise locations around the US. I want to look at YTD member conversions (from one membership package to another) for each franchise location.

 

I'm able to do this across the entire company with the measure for YTD conversions and then PYTD Conversions using the following measures:

 

 

 

YTD Initiates = TOTALYTD(COUNTA('20YearConversions'[Reference ID]),'20YearConversions'[Conversion Date],"06/30")

 

 

However, I want this measure to return a column of each locations YTD conversions. How would I go about doing this? In excel, python, etc, I would just make it into a pivot table with fiscal year as the columns, index as the franchise location, and each entry as the total yearly conversions for that location. How do I do this in PowerBI without pivoting the data and calculating that way??

Thanks!!!

 

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You might consider creating pbix file that will contain some sample data, upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi @v-diye-msft ,

 

Thanks for the response.


Essentially, I want to do pivot table type calculations on raw data without needing to pivot the data.  Below is an example of what the data looks like when put into a matrix form. Essentially, all I want to do is create calculations/columns/measures that subtract the total number of conversions in each fiscal year by each franchise to get the YoY difference at each location.  FranchiseMatrix.PNG

 

So for example, the expected result for this type of calculation would be the franchise specific YTD sales minus the YTD sales from last year.  Again, I'm able to do this for all franchises grouped together, but not ona franchise specific basis.

 

Does this help? I just need a calculation likely with a filter, to get this but I can't figure it out.  

 

Michael

Hi @Anonymous 

 

Please kindly share the data in the table rather than Matrix, and disclose the expected results. that would be easier for us to repro the scenario and provide a valuable solution. looking forward to your reply. 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.