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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ahmetturetmis
Frequent Visitor

How can I use Cards without aggregation ?

Hi all,

 

I am calculating some completion percentages for some projects depend on some weights of activities.

 

My measure is working in a matrix or a table but when I try it in the card it shows wrong amounts. 

 

Truncated Measure for Card is

 

Completion Client CARD =
VAR SubPMS =
    IF( ISBLANK( [Client SubDis PMS] ), 1, [Client SubDis PMS] )
VAR DisPMS =
    IF( ISBLANK( [Client Dis PMS] ), 1, [Client Dis PMS] )
VAR solo =
    SUMX( ALLOWED_ACTIVITIES, [Actual QTY] * [Client Act PMS] * SubPMS * DisPMS )
VAR total =
    SUMX(
        SUMMARIZE(
            ALLOWED_ACTIVITIES,
            ALLOWED_ACTIVITIES[ProjectCode],
            ALLOWED_ACTIVITIES[Discipline],
            ALLOWED_ACTIVITIES[SubDiscipline],
            ALLOWED_ACTIVITIES[Activity],
            "Total",
                SUM( ALLOWED_ACTIVITIES[Planned Qty] )
                    * SUM( ALLOWED_ACTIVITIES[ClientActPms] )
                    * SUM( ALLOWED_ACTIVITIES[ClientSubdiscPms] )
                    * SUM( ALLOWED_ACTIVITIES[ClientDiscPms] )
        ),
        [Total]
    )
RETURN
    DIVIDE( solo, total, 0 )

 and the I select a project from the filter. table looks like that

 

ahmetturetmis_0-1626162138695.png

 

I would like to see 16.50 % but Card shows a wrong aggregated value as 16.48 %

 

What should I do to get the 16.50 % when someone select 412 from the project filter ?

 

Thanks in advance. 

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @ahmetturetmis ,

 

Is there only ProjectCode412 in the table? Can you share some sample data to us?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Actually no, I just use a filter not to show all projects. I need a card where it only shows %16.50 instead of %16.48 when a project is selected from filter.

Hi @ahmetturetmis ,

 

It's better to share some sample data so that we can check your formula. For measure, the total is not the sum of the measure values. It's a calculated value obtained by formula too.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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