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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
vika160
Helper III
Helper III

Grouping in Measure. Is it possible?

Hello all,

 

I need a help to figure out how to build a measure with grouping if this possible.

 

Exam_dateExamineesmodulesessionID
6/10/202221Accident62
6/10/202223Ethics 68
6/10/202234Life Insurance51
6/10/202228Segregated funds64
6/23/20221Accident62
6/23/20221Ethics 68
6/23/20223Life Insurance51
6/23/20221Segregated funds  64
6/10/20225Accident62
6/10/20223Ethics 68
6/10/20222Life Insurance 51
6/10/20222Segregated funds  64
6/23/202232Accident62
6/23/202228Ethics 68
6/23/202234Life  51
6/23/202228Segregated funds  64



What I need is 2 measures :

1. Calculates total number of examinees - done
2. Calculates Sum of (total of Uniq session per every date )  per any date frame   

 

Column SessionID is set to Count(Distinct) but - it counts distinct sessions in general. 

I need to calculate unique session by exam_date.

 for this date range totals unique sessions would be 8 as there are 4 unique sessions for Jun 10 and 4 for Jun 23.
I was trying to use group by but I was not successful.

 

And I need to hold Module field as it will be used in visual to slice by

Any help would be appreciated.

 

Thank you very much

1 ACCEPTED SOLUTION

Hi,

Try this measure

Measure 2 = SUMX(VALUES(Calendar[Date]),[Measure])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.  The total should be 4 (Not 😎 because there are 4 unique sessions id across both dates - 51, 62, 64 and 68.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

It is not what I am looking for. I nedd total of Uniques sessions per date selection. I specified it in description. 
Total should be 8 for all this data set as there are 2 dates with 4 unique sessions per date.
I will update my desc if it is not very clear

Hi,

Try this measure

Measure 2 = SUMX(VALUES(Calendar[Date]),[Measure])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you very much! it works!!!!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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