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
Anonymous
Not applicable

Report to display count and sum of Approved and Pending Status based on Specific data

Hi All,

 

Need help on a specific Report which displays the User who had approved the request and pending the request.

 

Example :

When the User DK,TVs, OM  Access the Report,

I am using RSL UserPrinciple() to Filter the data.

 

The Report needs to display 

 

User: DK

Approved: 1

Pending: 1

 

User: TVs 

Approved: 2

Pending: 1

 

USer  PM 

Approved: 2

Pending: 1 

 

I tried Unpivot and other option but not able to accomplish the specific report output. 

 

SAMPLE  Data 

IDTitleperiodTotalpointsforNominationStage1ApproverStage1StatusStage2ApproverStage2StatusStage3ApproverStage3Status
1STM5/28/2021100DKApprovedTVSApprovedPMApproved
2SOUQ5/28/2021100TVSApprovedDKPending  
3SHT5/28/2021100PMApprovedTVSPending  
4HT5/28/2021100PMPending 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

You can Duplicate three tables, the transform data as:

v-xulin-mstf_1-1623053906365.pngv-xulin-mstf_2-1623053920281.png

v-xulin-mstf_3-1623053936600.png

Rename the two columns as:

v-xulin-mstf_4-1623054018849.pngv-xulin-mstf_5-1623054028082.pngv-xulin-mstf_6-1623054039466.png

Append the three tables.

v-xulin-mstf_7-1623054075897.png

Create two measures as:

 

approved_count = 
CALCULATE(
    COUNT('Count_Table'[Stage_Approver]),
    FILTER(
        ALL('Count_Table'),
        'Count_Table'[Stage_Status]="Approved" && 'Count_Table'[Stage_Approver]=MAX('Count_Table'[Stage_Approver])
     ))
pending_count = 
CALCULATE(
    COUNT('Count_Table'[Stage_Approver]),
    FILTER(
        ALL('Count_Table'),
        'Count_Table'[Stage_Status]="Pending" && 'Count_Table'[Stage_Approver]=MAX('Count_Table'[Stage_Approver])
     ))

 

Here is the output:

v-xulin-mstf_8-1623054166037.png

The pbix is attached.

 

Best Regards,
Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks, Link for the detailed Explanation ...Will check and get back to you.

Hi @Anonymous,

 

Is your issue solved?

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

You can Duplicate three tables, the transform data as:

v-xulin-mstf_1-1623053906365.pngv-xulin-mstf_2-1623053920281.png

v-xulin-mstf_3-1623053936600.png

Rename the two columns as:

v-xulin-mstf_4-1623054018849.pngv-xulin-mstf_5-1623054028082.pngv-xulin-mstf_6-1623054039466.png

Append the three tables.

v-xulin-mstf_7-1623054075897.png

Create two measures as:

 

approved_count = 
CALCULATE(
    COUNT('Count_Table'[Stage_Approver]),
    FILTER(
        ALL('Count_Table'),
        'Count_Table'[Stage_Status]="Approved" && 'Count_Table'[Stage_Approver]=MAX('Count_Table'[Stage_Approver])
     ))
pending_count = 
CALCULATE(
    COUNT('Count_Table'[Stage_Approver]),
    FILTER(
        ALL('Count_Table'),
        'Count_Table'[Stage_Status]="Pending" && 'Count_Table'[Stage_Approver]=MAX('Count_Table'[Stage_Approver])
     ))

 

Here is the output:

v-xulin-mstf_8-1623054166037.png

The pbix is attached.

 

Best Regards,
Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

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.

Top Solution Authors