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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
mcash1
Frequent Visitor

Finding how often a value appears in in a month compared to total submissions

Hello,

 

I'm new to Power BI and writing DAX commands and I'm having trouble finding an answer to this on here, I'm trying to figure out a formula for showing the percentage of monthly submissions that discuss a specific topic. Here's what happens:

  • Managers file submissions for each meeting with a teammate
  • Each submission records the different topics discussed (7 different topics total, selection can include multiple topics)
  • Each month, I want to look at the number of times a topic was discussed compared to the overall submissions that month

I want to make a line chart showing the monthly % for each topic, and not 100% stacked as the totals will equal more than 100%. E.g. in November, 5/10 sessions discussed Topic 1 (50%) and 8/10 sessions discussed Topic 2 (80%), so I want a line chart showing the monthly values of each topic. And there will be slicers for the topics, so the chart should update based on slicer selected.

 

Here is an example of what the data looks like, I'm having trouble creating that final column

Session IDDateTopics Discussed
1NovTopic A
1NovTopic B
1NovTopic C
2NovTopic A
2NovTopic B
3NovTopic A
3NovTopic B
3NovTopic C
3NovTopic D

 

Looking for something like this:

MonthTopicTotal Sessions Discussed

Nov

Topic A85%
NovTopic B60%
NovTopic C10%
DecTopic A90%
DecTopic B75%
DecTopic C5%
3 REPLIES 3
SamInogic
Super User
Super User

Hi,

We have go through your requirement and it seems that you want to calculate the Sessions in Percentage categorized by Month and Topics. Therefore, you can try below mentioned steps to achieve the same.

  1. Create a new table with Grouping the data based on Topic and Month columns as shown in below,

    New Summary = GROUPBY(Sessions, Sessions[Month], Sessions[Topic],"Total Sessions", COUNTAX(CURRENTGROUP(), Sessions[Session ID]))

    SamInogic_0-1671597101931.png

     



  2. Now you can create a column to calculate the Percentage of Total Sessions with below DAX expression and change the Format of the Column as Percentage.

    % Sessions = 'New Summary'[Total Sessions] / 10

    SamInogic_1-1671597101938.png

     

If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.

Thanks!

Inogic Professional Services

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/  

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Hello! Thank you so much for replying! This has been very helpful but I need a little more info.

I created the NEW SUMMARY table as stated, which works great. But the % Sessions column needs a little fixing. % Sessions = 'New Summary'[Total Sessions] / 10 (I need the "10" to be replaced by the monthly total session. I took a screenshot of the actual data (naming is different than my question above.) 
On the left, it shows the % Session using the "10" as monthly totals, but I need the totals as shown on the right table.

 

(I filtered to show just one topic, to make it easier to see)

mcash1_1-1671628425125.png

 

Here's the end result I'm looking for:

mcash1_0-1671650231725.png

 


Do I need to add another column to the NEW SUMMARY table to count the number of monthly submissions that the % Session can use to calculate the average? 

Hi,

In order have dynamic Total Number of Sessions by Month to calculate the % of Sessions then you will need first to store Total Number of sessions by month in new Table with DAX as below:

Total Sessions in Each Month = GROUPBY('New Summary', 'New Summary'[Sessions_Month], "Total Monthly Sessions", SUMX(CURRENTGROUP(), 'New Summary'[Total Sessions]))

SamInogic_0-1671682719204.png

Then within New Summary table, update the DAX for “% Sessions” column as below:

% Sessions = 'New Summary'[Total Sessions] / LOOKUPVALUE('Total Sessions in Each Month'[Total Monthly Sessions], 'Total Sessions in Each Month'[New Summary_Sessions_Month], 'New Summary'[Sessions_Month])

SamInogic_1-1671682753836.png


Thanks!

Inogic Professional Services

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.