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
Shrey03
Regular Visitor

Summarized table based on dynamic selections

Hi All,

 

Below is my base table -

 

DateColumn 2Column 3Column 4Column 5
2023-12CMF1200
2023-11CMF1200
2023-12EMF1200
2023-11EMF1204835
2023-10EMF1204835
2023-10CMF12761515454
2023-12DMF1256875888
2023-11DMF12761515454
2023-10DMF1256875888
2023-11DAF1206
2023-10DAF1210035
2023-12DAF121006
2023-10CAF125213335117
2023-12CAF127525265659
2023-11CAF126648062601
2023-11EAF127515265624
2023-12EAF126648062595
2023-10EAF125203335111

 

and below is the expected output (Summarized table by Column 2 & 3 unique value and dynamic date selection)

 

DateColumn 2Column 3Column 4Column 5Cal Col1Cal Col2
2023-10 to 2023-12CMF12761515454102.94783900
2023-10 to 2023-12CAF1219386516337715.733048800
2023-10 to 2023-12DMF12189892723043.40824100
2023-10 to 2023-12DAF122004776.5015300
2023-10 to 2023-12EMF12096700.000
2023-10 to 2023-12EAF1219366516333015.663033500
Total Sum  414334379108 7705600

 

Formula for: 

Cal Col1=Abs(Column 5 - Column 4)*100/Column 4

Cal Col2=Cal Col1 * Column 4

 

Can someone please help with a solution to this?

5 REPLIES 5
v-yilong-msft
Community Support
Community Support

Hi @Shrey03 ,
I create a table as you mentioned.

vyilongmsft_0-1711435100010.png

Then I create two calculated columns.

Cal Col1 =
VAR _B =
    ABS ( 'Table'[Column 5] - 'Table'[Column 4] ) * 100 / 'Table'[Column 4]
RETURN
    IF ( 'Table'[Column 4] = 0, 0, _B )
Cal Col2 =
'Table'[Cal Col1] * 'Table'[Column 4]

vyilongmsft_1-1711435351032.png

In the latest version, I think you can manually open the Total value you need.

vyilongmsft_2-1711435608675.png

vyilongmsft_3-1711435661937.png

 

 

 

Best Regards

Yilong Zhou

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

Hi @v-yilong-msft,

 

Thank you for the reply. Can you please help using the base table as below 

Shrey03_0-1711460360922.png

to arrive at the highlighted numbers by creating measures as these numbers would be required for further caculations hence having those in Measures would help

 

Shrey03_1-1711460506835.png

 

 

Hi @Shrey03 ,

Are there some columns provided in image 2 or none at all? If none of them are provided, I don't think it can be realized. This is because when New Table is created, there needs to be a link to create the new table.

 

 

Best Regards

Yilong Zhou

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

Shrey03
Regular Visitor

@danextian I understand. My objective is to get the Total Sum values (if possible using measures) and not the entire calculated table which I can further use for my caculations

 

Shrey03_0-1711344853406.png

 

danextian
Super User
Super User

Hi @Shrey03 ,

 

Calculated tables don't respond to slicer selections. They are updated only when the refrenced tables are updated, when the formula is modified or upon data refresh. You can use visuals instead to dynamically change the view and filter that using a slicer but the referenced table must have all the rows needed.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.