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
helalm
Helper II
Helper II

Power BI - Beyond Table Profile Stats

I have used Table.Profile function for most part. Now, the requirement somewhat changed and I need to get more stats on multiple variables. For example, on continuous variables such as age, total scores, etc... I need to get N, Mean, Median, STDV, Min, Max, and IQR (Interquartile range), and Box plot graph by let's say sites or clinics (See attached BoxPlot picture and formatting). For categorical, N, column % by let's say sites or clinics ((See attached Category example picture and formatting). I can create these measures easily and format the report accordingly for one variable at a time. However, I have 80 different data sets with more than 1500 variables.
Therefore, creating these measures for 1500 variables would take forever and Table.Profile wouldn't give me all of the stats + Box Plot that I need. Any suggestions?

BoxPlot.jpgCategory.png

 

Thank you

2 REPLIES 2
mahoneypat
Employee
Employee

If you have that many, you could make a custom function that takes a table as an input and returns all the stats for the table (similar to Table.Profile but customize to add what you need).  You could also do it with R or Python.  In any case, you can apply the function at the dataset level (when all the tables are still in table form) and apply the function; you would then have a single table with all the desired stats for all the columns of all the tables (that you could make your box plot from and have slicers for tables/columns).

Create a Profiling Report in Power BI: Give the End User Information about the Data - RADACAD

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thank you Pat,

I think I can add, as you suggested, few additional stats but getting but I doubt that custom Table.Profile give me reports like the ones I shared with pictures. Would it?

 

Thank you,

Helal

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.