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

[URGENT. NEED HELP] How to Turn a Measure into Column for Aggregation?

Hi,

May I request your advise for the following?

 

jiayit918871_0-1636079325120.png

I have Start Date and End Date slicers that control the No of Day column in the table and the Sales per Day is calculated based on Sales/No of Day. After that the Salespersons will categorised into A, B or C based on the the three Min Category benchmark.

However, my end result I need to group the result by Category. Eg: in this case, C will have 2 salesperson and total of 160 sales; B will have 1 salesperson and total of 278 sales. How can I group the result since the category is a calculated measure based on the dynamic start and end date filter?

 

Appreciate your help. Thanks in advance!

Bryan

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.  In the Category table, type in a very large number in the third column of Category A.

Hope this helps.

Untitled.png


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

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Please share some data and show the expected result.


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

Hi,

You may download my PBI file from here.  In the Category table, type in a very large number in the third column of Category A.

Hope this helps.

Untitled.png


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

Hi Ashish Mathur,

Really thanks for your solution. It's work!
But what if my category benchmark is a SCD table? How do we deal with that?
https://drive.google.com/drive/folders/1PKxQ9899BrvmEQ0odZjNRf2a9M7LtxRN?usp=sharing 

jiayit918871_0-1636603298771.png

 

Warm Regards,
Bryan





 

You are welcome.  If my previous reply helped, please mark it as Answer.  For your new question, start a new thread.


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

Hi Ashish Mathur,

 

Here is the new thread. Thanks!
[Need Help]: How to join a table with Slowly Chang... - Microsoft Power BI Community

 

Warm Regards,

Bryan

amitchandak
Super User
Super User

@jiayit918871 , I think ABC is based on sales. This needs bucketing with an independent table.

 

You need to use the sales rep name with that to group and create new measures

 

Refer these two

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.