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
gomezc73
Helper IV
Helper IV

CARD in BLANK

Hi,

 

    I have a matrix with all values i need, but now I need create some CARDs with totals and others calculations, but I can create calculations (Variations, percentages etc), because the Amount total is displayed in BLANK. Can you please help me?

 

   I need show the Grand total in a CARD, and I need a PERCENTAGE (GRAND TOTAL/the amount calculated for FixedAsset(code A004)

     Capture.JPG

I tried to upload the PBI but I can find an option to do that, sorry.

 

But here are the tables used

MENUS: (Related with Submenus for the field Submenu code)

    

Report_NameRow Description Submenu2
Balance reportExpensesA002
Balance reportExpensesA003
Balance reportExpensesA004
Balance reportExpensesA005
Balance reportExpensesA006

 

SUBMENUS: Related with movements with the field OBJ

   

REPORT_NAMECODEMENULINENBRSUBMENUROW_DESCRIPTIONOBJ
Balance reportA0029A00269Emp.Uniforms8800
Balance reportA0029A00269Emp.Uniforms8801
Balance reportA0029A00269Emp.Uniforms8802
Balance reportA0029A00269Emp.Uniforms8803
Balance reportA0029A00269Emp.Uniforms8804
Balance reportA0039A00269CT Uniforms8805
Balance reportA0039A00269CT Uniforms8806
Balance reportA0039A00269CT Uniforms8807
Balance reportA0039A00269CT Uniforms8808
Balance reportA0043A00423Fixed Asset9300
Balance reportA0043A00423Fixed Asset9301
Balance reportA0043A00423Fixed Asset9302
Balance reportA0043A00423Fixed Asset7002
Balance reportA0053A00423Other expenses7003
Balance reportA0053A00423Other expenses7004
Balance reportA0053A00423Other expenses7005
Balance reportA0063A00423Kitchen main5000
Balance reportA0063A00423Kitchen main5001

 

MOVEMENTS:

   

OBJJan
8800100
8801123
8802211
8803233
880424
880555
8806686
8807458
8808346
9300643
9301965
93025744
70027557
7003543
70042334
70055678
5000234
5001573

    

 

regards

 

 

 

1 ACCEPTED SOLUTION

Hi, @gomezc73 

 

You can try the following methods.

Total =
CALCULATE (
    SUM ( MOVEMENTS[Jan] ),
    FILTER (
        ALLSELECTED ( SUBMENUS ),
        [CODEMENU] IN { "A002", "A003", "A004", "A005", "A006" }
    )
)

vzhangti_0-1647327392958.png

PERCENTAGE = 
VAR _1 = [Total]
VAR _2 =
    CALCULATE (
        SUM ( MOVEMENTS[Jan] ),
        FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] = "A004" )
    )
RETURN
    DIVIDE ( _1, _2 )

vzhangti_1-1647327767180.png

Is this the result you were expecting?

 

Best Regards,

Community Support Team _Charlotte

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
Greg_Deckler
Super User
Super User

@gomezc73 So what is the measure formula?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

  Sorry, i forgot send the measure:

  

Total = SUMX(Filter(Movements, SELECTEDVALUE(Submenu[CODEMENU]) IN {"A002","A003","A004","A005","A006"}),Movements[Jan]).
 
I really appreciate your help,
regards

Hi, @gomezc73 

 

You can try the following methods.

Total =
CALCULATE (
    SUM ( MOVEMENTS[Jan] ),
    FILTER (
        ALLSELECTED ( SUBMENUS ),
        [CODEMENU] IN { "A002", "A003", "A004", "A005", "A006" }
    )
)

vzhangti_0-1647327392958.png

PERCENTAGE = 
VAR _1 = [Total]
VAR _2 =
    CALCULATE (
        SUM ( MOVEMENTS[Jan] ),
        FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] = "A004" )
    )
RETURN
    DIVIDE ( _1, _2 )

vzhangti_1-1647327767180.png

Is this the result you were expecting?

 

Best Regards,

Community Support Team _Charlotte

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.