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
selpaqm
Helper V
Helper V

how to use matrix to compare 2 quarters in the page with 2 quarter slicers contains

Hi,

I have 2 columns one of them q1 and the other q2 (duplicated columns). Have lots of graphs on this page. q1 and q2 slicers are (quarters like 3-22, 6-22, 9-22 etc) effecting graphs (using edit interactions). however, I want to add a matrix to compare the figures based on selected values q1 and q2.

my row data is as below.

IDSalesQ1Q2
aaaa10K03-202203-2022
aaaa20K06-202206-2022
aaaa5K09-202209-2022
bbbb20K03-202203-2022
bbbb10K06-202206-2022
bbbb10K09-202209-2022
cccc5K03-202203-2022
cccc15K06-202206-2022
cccc25K09-202209-2022

 

so wanna see a table as below

 (selected quarter on q1 slicer) ie 09-2022 (selected quarter on q2slicer) ie 03-2022
IDsalessales
aaa5K10K
bbb10K20K
cccc25K5K

 

so I have already duplicated tables and try to get numbers from 2 tables and created connections etc. but not succeeded.

2 ACCEPTED SOLUTIONS
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1667930758216.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

CNENFRNL
Community Champion
Community Champion

Simple enough, based on the previous solution, a third measure

Diff = [Sales Q1] - [Sales Q2]

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1667930758216.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

@CNENFRNL  Thanks for the solution. is there any chance to add a progressing measure to see the difference between 2 selected seasons like aaaaa = -5 bbbbb=-10 ccccc=20

CNENFRNL
Community Champion
Community Champion

Simple enough, based on the previous solution, a third measure

Diff = [Sales Q1] - [Sales Q2]

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

@CNENFRNL  thanks for it, working really too much on a thing sometimes makes me blind to any other things. thanks again for your helps

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.