+ Reply to Thread
Results 1 to 3 of 3

Sort filtered and summarized table in Measure (Datamodel)

  1. #1
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    157

    Sort filtered and summarized table in Measure (Datamodel)

    Hi

    I am still trying to understand DAX and measures and Datamodel as well as PQ.
    In a previous post I was able to perform a task in PQ, then same task by using Filter array formulas. Now I want to achive the same functionality by a measure in my datamodel.

    I have a table with scrap per day, reason and machine. The measure should sum the reasons by day and machine and then concatenate the reason and the value and sort them by highest to lowest value

    E.g. for 8/22 Machine A the result is
    HTML Code: 
    In PQ its working (=Option1), with the formula (=Option2) its working. Now my test with the Datamodel (=Option3) is also working, except I can not achive the sorting before the concatenate.

    The measure is:
    Please Login or Register  to view this content.
    The result is
    HTML Code: 
    So basically the numbers are correct, just the order is an issue.

    I was doing some research and did not find any options to sort a summarize table which is filter by DAX.

    Do you have any ideas?


    General, is the calculated column or the measure the better option if my table has 20k rows?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Sort filtered and summarized table in Measure (Datamodel)

    Please try

    Filter each Scrap > 1
    Please Login or Register  to view this content.
    Filter SUM Scrap > 1
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    157

    Re: Sort filtered and summarized table in Measure (Datamodel)

    Hi

    thanks, I am sometimes a bit stupid. I was looking for sorting in Filter and summarize but did not come to the conclusion you can sort in the concatenatex :-)

    Performance question:
    Which version is the fastest in your opinion? THe measure or the calculated column?
    Thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Averagex measure in datamodel
    By hansolu in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-13-2021, 01:12 AM
  2. Pivot Table: Grand Total different measure from Column measure
    By chinneywow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2019, 06:22 AM
  3. VBA -- Creating Pivot Table from datamodel table
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2018, 10:21 AM
  4. help making a summarized table
    By bassethound in forum Excel General
    Replies: 11
    Last Post: 01-23-2017, 02:11 PM
  5. Pivot Table with no Summarized Values
    By AntiPivotTable in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-07-2013, 10:45 AM
  6. Table summarized
    By kelivor in forum Excel General
    Replies: 2
    Last Post: 07-14-2012, 01:59 PM
  7. Auto Sort when Measure changes
    By lambanator in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 08:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1