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.
Solved! Go to Solution.
Hi @shibabrata27 ,
Add a calculated column in dataset table to always identify the latest quarter.
Rank quarter = RANKX ( 'Dataset', 'Dataset'[Quarter],, DESC, DENSE )
Add below measure into table visual and set its value to 0.
check = VAR Per_Account = CALCULATE ( SUM ( 'Dataset'[Margin] ), FILTER ( 'Dataset', 'Dataset'[Rank quarter] = 1 ) ) / CALCULATE ( SUM ( 'Dataset'[Revenue] ), FILTER ( 'Dataset', 'Dataset'[Rank quarter] = 1 ) ) VAR All_Account = CALCULATE ( SUM ( 'Dataset'[Margin] ), FILTER ( ALLSELECTED ( 'Dataset' ), 'Dataset'[Rank quarter] = 1 ) ) / CALCULATE ( SUM ( 'Dataset'[Revenue] ), FILTER ( ALLSELECTED ( 'Dataset' ), 'Dataset'[Rank quarter] = 1 ) ) RETURN IF ( Per_Account < All_Account, 0, 1 )
Best regards,
Yuliana Gu
Hi @shibabrata27 ,
Since the original question has been resolved, please kindly mark the helpful reply as an answer so that it can benefit more users. For any further question, I would suggest you post a new thread on forum so that more community members can view it and provide advice.
Best regards,
Yuliana Gu
Hi @shibabrata27 ,
Add a calculated column in dataset table to always identify the latest quarter.
Rank quarter = RANKX ( 'Dataset', 'Dataset'[Quarter],, DESC, DENSE )
Add below measure into table visual and set its value to 0.
check = VAR Per_Account = CALCULATE ( SUM ( 'Dataset'[Margin] ), FILTER ( 'Dataset', 'Dataset'[Rank quarter] = 1 ) ) / CALCULATE ( SUM ( 'Dataset'[Revenue] ), FILTER ( 'Dataset', 'Dataset'[Rank quarter] = 1 ) ) VAR All_Account = CALCULATE ( SUM ( 'Dataset'[Margin] ), FILTER ( ALLSELECTED ( 'Dataset' ), 'Dataset'[Rank quarter] = 1 ) ) / CALCULATE ( SUM ( 'Dataset'[Revenue] ), FILTER ( ALLSELECTED ( 'Dataset' ), 'Dataset'[Rank quarter] = 1 ) ) RETURN IF ( Per_Account < All_Account, 0, 1 )
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |