- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Column to Measure
Hi Good day,
I can anyone pls how to change the calculated column to measure, The highligthed column how to create in measure.
Thank you
Allan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
WINDOW function (DAX) - DAX | Microsoft Learn
Rev sum: =
SUM( Sales[Revenue] )
Cumulate Rev sum: =
CALCULATE (
SUM ( Sales[Revenue] ),
WINDOW (
1,
ABS,
0,
REL,
SUMMARIZE ( ALL ( Sales ), Category[Category], 'Calendar'[Date] ),
ORDERBY ( 'Calendar'[Date], ASC ),
,
PARTITIONBY ( Category[Category] )
)
)
Category Rev total: =
IF (
NOT ISBLANK ( [Rev sum:] ),
CALCULATE ( [Rev sum:], ALL ( 'Calendar'[Date] ) )
)
% cumulate rev: =
VAR _cumulaterev =
CALCULATE (
SUM ( Sales[Revenue] ),
WINDOW (
1,
ABS,
0,
REL,
SUMMARIZE ( ALL ( Sales ), Category[Category], 'Calendar'[Date] ),
ORDERBY ( 'Calendar'[Date], ASC ),
,
PARTITIONBY ( Category[Category] )
)
)
VAR _categorytotalrev =
CALCULATE (
SUM ( Sales[Revenue] ),
WINDOW (
1,
ABS,
-1,
ABS,
SUMMARIZE ( ALL ( Sales ), Category[Category], 'Calendar'[Date] ),
ORDERBY ( 'Calendar'[Date], ASC ),
,
PARTITIONBY ( Category[Category] )
)
)
RETURN
DIVIDE ( _cumulaterev, _categorytotalrev )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Jihwan Kim,
Thank you for your reply, but when i try the dax function show some error. can you pls help me to figure out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Thank you for your message. I can see that there is many-to-many relationship. If many-to-many relationship is not avoidable, the approach has to be done in a different way.
Please share your sample pbix file, and then I can try to look into it.
Thanks.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you for the help i got the solution by creating Dummy table.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
04-19-2024 01:15 AM | |||
07-03-2024 12:12 AM | |||
01-27-2024 02:12 AM | |||
05-13-2024 09:51 AM | |||
06-07-2024 07:50 AM |
User | Count |
---|---|
85 | |
78 | |
41 | |
40 | |
35 |