cancel
Showing results for 
Search instead for 
Did you mean: 
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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors