Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
newgirl
Post Patron
Post Patron

Generate series or table based on measures

Hi! 

Below is my data for this report (text and photo provided).

 

eATW 2.JPG

 

ReferenceActionCompany CodeDateMonthYearMerged
900147675110Pick up500007761/3/202120210120210150000776
900147675211Pick up500007761/3/202120210120210150000776
900147675311Pick up500007761/3/202120210120210150000776
900147675511Pick up500007761/3/202120210120210150000776
900147674110Pick up500018421/3/202120210120210150001842
5.00063E+12Served500063261/27/2021 9:58:36 PM20210120210150006326
5.00087E+12Served500086641/28/2021 5:09:08 AM20210120210150008664
5.00059E+12Served500058681/27/2021 8:07:13 PM20210120210150005868
5.0009E+12Served500090011/28/2021 4:24:48 AM20210120210150009001
5.0009E+12Served500090011/28/2021 9:47:48 PM20210120210150009001
5.00093E+12Served500092741/29/2021 11:44:58 PM20210120210150009274
5.0009E+12Served500089571/28/2021 5:09:09 AM20210120210150008957
5.00093E+12Served500092741/28/2021 5:09:08 AM20210120210150009274
5.00063E+12Served500063171/29/2021 1:14:52 AM20210120210150006317
5.00016E+12Served500016101/28/2021 2:30:15 AM20210120210150001610
5.0003E+12Served500030221/31/2021 11:44:40 PM20210120210150003022
5.0003E+12Served500030221/31/2021 11:24:25 PM20210120210150003022

 

 

and here is my output matrix using the following measures:

 

Count of Served = CALCULATE(COUNT(SharePoint[Action]),SharePoint[Action]="Served")

Count of PU = CALCULATE(COUNT(SharePoint[Action]),SharePoint[Action]="Pick up")

% of eATW = [Count of Served]/[Count of PU]

Additional Raffle = IF([% of eATW]=1, 4,0)

TotalRaffleTickets = [Count of Served] + [Additional Raffle]

 

eATW 1.JPG

 

My desired additional table is below (column R in the photo). The generated rows (or series) are  based on the total raffle tickets computed. FYI that the 'merged' column is combined columns of MonthYear and the Company Code. 

 

Hope somebody can help me!

eATW 3.JPG

 

5 REPLIES 5
amitchandak
Super User
Super User

@newgirl , You will not able to generate a series of measures as this new table will not respond to the slicer values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

hi @amitchandak  oh, I see. Nevertheless, how to proceed with generating the desired series of measures even though it won't respond to slicer values?  

@newgirl ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, @amitchandak !

 

Here is the link of sample data in sheet name 'sample'. In the 'pivot' sheet, it displays the desired output I need.

 

https://drive.google.com/file/d/1f7gV47oqlX-WNKDL_hECUIHNL6kDKM1E/view?usp=sharing

 

Thank you!

Hi, @newgirl 

I am afraid it is difficult to  use dax to expand multiple rows based on the value of a measure column.

 

If you still have no idea about your problem, you can open a support ticket with MSFT to seek technical support , usually they will have better suggestions.

 

Best Regards,
Community Support Team _ Eason

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors