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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
akas2023
Frequent Visitor

help needed

 present in culum chart

 

 

Thanks

1 ACCEPTED SOLUTION

Hi @akas2023 ,

Please try below steps:

1. please add a new tabel

Table2:

vbinbinyumsft_0-1685609745862.png

2. create measure with below dax formula

B and Above Adj =
VAR _class =
    SELECTEDVALUE ( 'Table 2'[Class] )
VAR _year =
    SELECTEDVALUE ( 'Table 2'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Class] = _class && [Year] = _year )
VAR tmp1 =
    FILTER ( tmp, UNICODE ( [Marks] ) <= UNICODE ( "B" ) )
VAR _val =
    DIVIDE ( COUNTROWS ( tmp1 ), COUNTROWS ( tmp ) )
VAR tmp2 =
    FILTER ( ALL ( 'Table' ), [Year] = _year )
VAR _val1 =
    DIVIDE ( COUNTROWS ( tmp2 ), COUNTROWS ( ALL ( 'Table' ) ) )
VAR _b =
    IF ( _class = "OverAll", _val1, _val )
RETURN
    _b
C and Above Adj =
VAR _class =
    SELECTEDVALUE ( 'Table 2'[Class] )
VAR _year =
    SELECTEDVALUE ( 'Table 2'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Class] = _class && [Year] = _year )
VAR tmp1 =
    FILTER ( tmp, UNICODE ( [Marks] ) <= UNICODE ( "C" ) )
VAR _val =
    DIVIDE ( COUNTROWS ( tmp1 ), COUNTROWS ( tmp ) )
VAR tmp2 =
    FILTER ( ALL ( 'Table' ), [Year] = _year )
VAR _val1 =
    DIVIDE ( COUNTROWS ( tmp2 ), COUNTROWS ( ALL ( 'Table' ) ) )
VAR _b =
    IF ( _class = "OverAll", _val1, _val )
RETURN
    _b

3. add a clustered column chart with Table2 fields and measure

vbinbinyumsft_1-1685609900830.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

5 REPLIES 5
v-binbinyu-msft
Community Support
Community Support

Hi @akas2023 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

NameGenderMarksYearClass
Abdallah Essam Abdelkader Emam MoussaMaleC2019-2020Year 1
Abdullah Aref Musieh Mohammed FadhelMaleC2019-2020Year 1
Alreem Omar Buti Salem AlshamsiFemaleA*2019-2020Year 1
Ameer Mohd Waleed AlshalabiMaleD2019-2020Year 1
Carolina Rodrigues MuttiFemaleB2019-2020Year 1
Fares Mohammad Noman AlsakkaMaleA2019-2020Year 1
Haadiyah Atif Iftikhar Atif IftikharFemaleA*2019-2020Year 1
Hisham Pedragoza IssaMaleA*2019-2020Year 1
Lujain Mohammad Mahmoud Al AzzamFemaleA*2019-2020Year 1
Abdalla Nasser Abdalla Nasser AlhammadiMaleA2020-2021Year 1
Abdoul Rachid Idrissa AdamouMalec2020-2021Year 1
Aisha Abubakar Kullatein AlnadhirFemaleA*2020-2021Year 1
Azmina Hackeem Hackeem Mohamed IqbalFemaleB2020-2021Year 1
Farah Mohammad Faisal Alhelaly Rady MohammadFemaleA2020-2021Year 1
Hajara Babagana ZannahFemalec2020-2021Year 1
Iyaad AhmedMaleA*2020-2021Year 1
Jeevith Raja Sathish KumarMaleA2020-2021Year 1
Lian Alaa AbuyounesFemaleA*2020-2021Year 1
Abdalla Nagy Hassan Abdalla AbdelnaeimMaleA*2021-2022Year 1
Abdulaziz Mohammed Mahfood Al ZubaidiMaleC2021-2022Year 1
Ameer Mohamed Hammad Mohamed IsmailMaleA*2021-2022Year 1
AMER MOHAMED AHMED MOHAMED KHALILMaleD2021-2022Year 1
Danna Khaled OuwerFemaleA*2021-2022Year 1
Eissa Amr Mohamed Kamel Abdelaziem MohamedMaleD2021-2022Year 1
Hasnath Abdul Ahad Abdul Ahad Mohamed BarakFemaleC2021-2022Year 1
Majid Ahmed OmerMaleC2021-2022Year 1
Raya Mohd Mustafa Abu GhoushFemaleC2021-2022Year 1
Mhd Kariem Mhd Bilal Al KhawamMaleA+2019-2020Year 2
Mohamed Ahmed Mahmoud HamdyMaleC2019-2020Year 2
Mohamed Hesham Samir Mohamed Mohamed SaidMaleA+2019-2020Year 2
Moustafa Hany Moustafa Abdelhamid ElnahasMaleA2019-2020Year 2
Noor Ayman Mahmoud AwadFemaleC2019-2020Year 2
Qazi Muhammad SaddeinMaleA+2019-2020Year 2
Ritag Ahmed Badran Bedir BadranFemaleA2019-2020Year 2
Rital Ahmed Mahmoud HamdyFemaleC2019-2020Year 2
Tamara Alisa RaiFemaleA+2019-2020Year 2
Muhammad Ebaad Ahmed Muhammad Furqan AhmedMaleA+2020-2021Year 2
Nivaan Umesh TalrejaMaleA2020-2021Year 2
Noah Ephrem BfkaduMaleD2020-2021Year 2
Rihan Zarif Md Saiful IslamMaleC2020-2021Year 2
Rim Hany Abdou Ibrahim AbdelfattahFemaleA+2020-2021Year 2
Semir Jabr IdrisMaleA+2020-2021Year 2
Seyed Amir Seyed Mohammad HashemiMaleA2020-2021Year 2
Syed Zaid Ullah Shah Zubair Ullah ShahMaleA+2020-2021Year 2
Yusra Luai Elnour AbdelmotalibFemaleA+2020-2021Year 2
Zafran Juliosqayssar Mohammed AdlanFemaleD2021-2022Year 2
Abdelrahman Mostafa Mohamed Mohamed MohamedMaleA2021-2022Year 2
Farah Mohammad Faisal Alhelaly Rady MohammadFemaleA2021-2022Year 2
Gehad Nedal Nabil Hassan Mohamed ElkilaniFemaleA2021-2022Year 2
Hamza Moataz Mohsen Mohamed Fahmy AbdelsalamMaleB2021-2022Year 2
Joudi Ali IsmailFemaleB2021-2022Year 2
Lian Alaa AbuyounesFemaleA2021-2022Year 2
Malek Walid Elsayed Emara Ali EmaraMaleC2021-2022Year 2
Maryam Suror ZerarFemaleA2021-2022Year 2

 

 

  B and AboveC and Above
Year 1   
 2019-202082%96%
 2020-202179%100%
 2021-202254%95%
Year 2   
 2019-202085%96%
 2020-202193%98%
 2021-202268%83%
Overall   
 2019-202079%94%
 2020-202186%98%
 2021-202263%87%

 

 

graph bi.JPG

 

Hi @akas2023 ,

Why Year1, 2019-2020, B and above is 82%? why is not 67%? could you please explain the calculate rule?

 

vbinbinyumsft_0-1685521090390.png

 

Best regards,
Community Support Team_Binbin Yu

The percentage is correct but the problem is I cannot include whole table bcoz of characters limitation.kindly help to how to do.thanks

Hi @akas2023 ,

Please try below steps:

1. please add a new tabel

Table2:

vbinbinyumsft_0-1685609745862.png

2. create measure with below dax formula

B and Above Adj =
VAR _class =
    SELECTEDVALUE ( 'Table 2'[Class] )
VAR _year =
    SELECTEDVALUE ( 'Table 2'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Class] = _class && [Year] = _year )
VAR tmp1 =
    FILTER ( tmp, UNICODE ( [Marks] ) <= UNICODE ( "B" ) )
VAR _val =
    DIVIDE ( COUNTROWS ( tmp1 ), COUNTROWS ( tmp ) )
VAR tmp2 =
    FILTER ( ALL ( 'Table' ), [Year] = _year )
VAR _val1 =
    DIVIDE ( COUNTROWS ( tmp2 ), COUNTROWS ( ALL ( 'Table' ) ) )
VAR _b =
    IF ( _class = "OverAll", _val1, _val )
RETURN
    _b
C and Above Adj =
VAR _class =
    SELECTEDVALUE ( 'Table 2'[Class] )
VAR _year =
    SELECTEDVALUE ( 'Table 2'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Class] = _class && [Year] = _year )
VAR tmp1 =
    FILTER ( tmp, UNICODE ( [Marks] ) <= UNICODE ( "C" ) )
VAR _val =
    DIVIDE ( COUNTROWS ( tmp1 ), COUNTROWS ( tmp ) )
VAR tmp2 =
    FILTER ( ALL ( 'Table' ), [Year] = _year )
VAR _val1 =
    DIVIDE ( COUNTROWS ( tmp2 ), COUNTROWS ( ALL ( 'Table' ) ) )
VAR _b =
    IF ( _class = "OverAll", _val1, _val )
RETURN
    _b

3. add a clustered column chart with Table2 fields and measure

vbinbinyumsft_1-1685609900830.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.