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
sriramn84
Frequent Visitor

Groupby/Count - Chord Visual - How to retain relationships with other fields?

Hi All,

I am new here. I tried to use a Chord Visual and it works fine. But the visual typically takes 3 fields, From, To and a Value. 

Data:

From	To	DateTime	Type
A	B	10/06/2019 0:00	M1
A	C	10/06/2019 0:00	M1
B	D	10/06/2019 0:00	M1
A	B	10/06/2019 0:00	M2
B	D	11/06/2019 0:00	M2
A	C	11/06/2019 0:00	M3
A	C	11/06/2019 0:00	M1

I have created an Aggregated table(Modeling Tab>NewTable>Dax Query as below).

AggregatedTable =SUMMARIZE (TestChord;TestChord[From]; TestChord[To]; "CountExchange"; COUNT ( TestChord[From]))

Question: As you see below, there is no relationship between the AggregatedTable and TestChord table. Thus I cannot slice the Chord Visual based on the dates. How can I achieve this relationship? 

PowerBI_Visual1.gif

 

 Thanks for the help.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI, @sriramn84 

For your requirement, you don't need to create an Aggregated table.

You need to just create a measure (Modeling Tab>NewMeasure>Dax Query as below)

CountExchange measure = CALCULATE(COUNTA(TestChord[From]))

Then drag this measure into visual as below:

5.JPG

 

Now it will be filtered by DateTime. 

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

HI, @sriramn84 

For your requirement, you don't need to create an Aggregated table.

You need to just create a measure (Modeling Tab>NewMeasure>Dax Query as below)

CountExchange measure = CALCULATE(COUNTA(TestChord[From]))

Then drag this measure into visual as below:

5.JPG

 

Now it will be filtered by DateTime. 

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That was simple and worked perfect! Thank you so much Lin! @v-lili6-msft 

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.